Modern dimmers are built from semiconductors instead of variable resistors, because they have higher efficiency. A variable resistor would dissipate power as heat and acts as a voltage divider. Since semiconductor or solid-state dimmers switch between a low resistance 'on' state and a high resistance 'off' state, they dissipate very little power compared with the controlled load.