Key Reset

Loading "Key Reset"
πŸ¦‰ Interestingly, we can use the key as a mechanism for removing and re-adding elements to the DOM. This is useful when we want to reset the state of a component or elements within a component.
We haven't covered state yet, but state is necessary for this exercise so that's done for you. All we need you to do is add the key prop and see how that affects the state of the app. Enjoy!
πŸ‘¨β€πŸ’Ό Type in the input, then click "reset" and think about why that works the way it does.
Login to get access to the exclusive discord channel.
  • βš›οΈFundamentals
    First Four Exercises are Free!
    Kent C. Dodds β—† πŸš€πŸ†πŸŒŒ:
    To make sure this shows up in the fundamentals thread. Isn't it exciting the first four exercises of...
    1 Β· 4 days ago
  • 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 Β· 4 days ago