DEV Community


Discussion on: Passing Down Functions As Props in React

petewk profile image

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!