Control Props

Loading "Control Props"
๐Ÿ‘จโ€๐Ÿ’ผ In this exercise, we've created a <Toggle /> component which can accept a prop called on and another called onChange. These work similar to the value and onChange props of <input />. Your job is to make those props actually control the state of on and call the onChange with the suggested changes.
Login to get access to the exclusive discord channel.
  • General
    Welcome to EpicReact.dev! Say Hello ๐Ÿ‘‹
    Kent C. Dodds โ—† ๐Ÿš€๐Ÿ†๐ŸŒŒ:
    Welcome to the first of many posts in the EpicReact.dev channel! Take a moment to introduce yourself...
    0 ยท 3 days ago