A resistor is an electronic component generally containing a thin metal or oxide film or a thin wire through which electricity flows with difficulty. It's resistance is measured in Ohms. A resistor always generates heat, even if only a tiny amount, and any replacement must be rated in Watts accordingly. See Resistors in the Wiki.