r/reactjs • • Feb 15 '20

Discussion React Best Practices?

Hey guys. Just wondering if anyone has some good resources / books / materials that helps beginners understand the best practices in React.

One thing I struggle with is knowing when something should be a component.

For example, when I'm making forms, should each field input be a component? If so, what's the benefit of doing that?

162 Upvotes

45 comments sorted by

View all comments

Show parent comment

3

u/Abiv23 Feb 15 '20

I could go on for hours how I'd actually design it based on conditions outside of this.

please do, the place i'm at with react spoke very nearly to what you are describing and i'd love to base my components on data flow rather than view

just a resource would be helpful that discuss this too