The
Switch
component is used to toggle between two states. You can find this component in the /components
folder.Switch
component in your code like this:
Switch.js