Thank you so much, you've somehow made this so simple.
I've been trying to learn React and after following a bunch of tutorials I decided to go back to the basics and realised I didn't understand using props, which seems like a huge part of React.
I've been pulling my hair out for two days straight trying to simply get state updated from a Child component, and you've simplified it perfectly!
Hero!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you so much, you've somehow made this so simple.
I've been trying to learn React and after following a bunch of tutorials I decided to go back to the basics and realised I didn't understand using props, which seems like a huge part of React.
I've been pulling my hair out for two days straight trying to simply get state updated from a Child component, and you've simplified it perfectly!
Hero!