I know that it is unwise to use 14 awg wire on a 20 amp circuit and that 12 gauge should be used because the larger wire can handle the larger load, right? Then how come when I open up a night light (that can be plugged into a 15A or 20A circuit) I find tiny wire (18 gauge?) coming directly off the plug pin to power a little LED bulb?
In other words, why can electrical devices use such tiny wires inside if they're on a regular 15A or 20A circuit?