DEV Community

Discussion on: You don’t need React for building websites

Collapse
 
lexlohr profile image
Alex Lohr

I think the main issue here is a misunderstanding: one of the paradigms of react is that it makes it simple to share and re-use components. What managers often don't realize is that this also makes it difficult to write components to be shared and re-used. So they only see the benefit of react, but not the cost.

That being said, react can be helpful for more complex web apps, but for a normal website, it is maybe not an ideal choice.

Collapse
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

By refusing to work with HTML and the DOM, React makes it harder to share and reuse components

Collapse
 
lexlohr profile image
Alex Lohr • Edited

That depends. It's simpler to share with other react-apps. With everyone else, not so much. In any case, it doesn't seem a coincidence that Facebook developed a framework based on a technical lock-in.

Thread Thread
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

That's an interesting definition of "share" you got there

Thread Thread
 
lexlohr profile image
Alex Lohr

That's an interesting opinion you got there.