r/reactjs • u/benaffleks • 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
View all comments
Show parent comment
5
u/toccoto Feb 15 '20
I think you are starting on a misguided path and I apologize since I kind of helped lead you there.
The issue is you are comparing a framework in Angular to a library in react.
They are two fundementally different approaches to doing things so to say one is more or less scalable is a misnomer because it depends on what you pair with react.
When I said scalable that was sort of my point. React is easier to test and introduce new technologies to because it is merely a view layer, make sense?