Answer:
It's counter-intuitive, but even though energy is dissipated with resistance, resistors are absolutely essential to the proper functioning of electronics. They function to ensure that other components aren't provided with too much voltage or electric current.