3 ms·
I want to hug Greg for this article and especially this paragraph at the end: "Third, if you’re implementing a very complicated component then you can use React
by citeguised 8y ago
I want to hug Greg for this article and especially this paragraph at the end:
"Third, if you’re implementing a very complicated component then you can use React just for that component. For instance, if you’re building a chat box then there’s really no need to implement your login page in React."
- eropple 8y agoYou can totally do that, but I write React for the entirety of an app because it means not having two separate development flows for different features. Making my login page driven by HTML and postbacks, rather than a straightforward REST(-ish) API talked to by an SPA, makes it nontrivially more difficult to establish the kind of separation of concerns necessary to then build a mobile application out of it (and as it happens, React is pretty useful there with React Native).