--- title: Toggle tags: visual,state,beginner --- Renders a toggle component. * Use the `React.useState()` to initialize the `isToggleOn` state variable to `false`. * Use an object, `style`, to hold the styles for individual components and their states. * Return a ` ); } ``` ```jsx ReactDOM.render(, document.getElementById('root')); ```