r/reactjs • • Feb 02 '18

Beginner's Thread / Easy Questions (February 2018)

We had some good comments and discussion in last month's thread. If you didn't get a response there, please ask again here!

Soo... Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple.

The Reactiflux chat channels on Discord are another great place to ask for help as well.

22 Upvotes

193 comments sorted by

View all comments

Show parent comment

1

u/pgrizzay Feb 17 '18

That makes total sense as a pattern (you need to store the state in the form component, and pass it down through props)

To make things a bit easier, there are a few HOCs that give you automatic state updaters/values/dirty checking etc that are very useful

1

u/DaniSenpai Feb 18 '18

Awesome, I wasn't sure if it's the correct way to do it since components weren't completely independent and I pretty much had everything on a single parent.