References in React can store values.
Here in this toggle component, I'm using ref and passing it a default value of false and calling this ref toggle ref, I'm going to link it to this enabled variable.
If enabled is true, the toggle switch is enabled. If false, then it's not switched on. So appl...