Initialize Toggle

Loading "Initialize Toggle"
πŸ‘¨β€πŸ’Ό Our toggle component should be able to be customizable for the initial state and reset to the initial state.
πŸ§β€β™‚οΈ I've updated the toggle component to use a reducer instead of useState. If you'd like to back up, and do that yourself in the playground, by my guest. Or you can check my work instead.
πŸ‘¨β€πŸ’Ό Please add a case in our reducer for the reset logic, and add an option to our useToggle hook for setting the initialOn state.

Access Denied

You must login or register for the workshop to view the diff.

Check out this video to see how the diff tab works.