2 types of led transformer, there are a few pros and cons to consider here.
Electronic transformers have an additional electronic device called an inverter that enables them to be much smaller than magnetic transformers. So, if you need to tuck the transformer into a tight space, you might want to choose electronic transformer. Another advantage to an electronic transformer is that it can be reset at the wall switch if there's an overload.
Although magnetic transformers are somewhat larger and heavier, they are more durable than electronic transformers and they tend to last longer.