4 ms·
React is not really a framework in the same sense Angular, Django, or Rails are. It does not dictate how you should architect your app.
by mplewis 11y ago
React is not really a framework in the same sense Angular, Django, or Rails are. It does not dictate how you should architect your app.
- Silhouette 11y agoIt does not dictate how you should architect your app. This is a little optimistic in practice, because while React is often described as being just the V in MVC, it also has significant scaling issues out of the box. Useful strategies for keeping the performance acceptable can have profound implications for the wider architecture of your application. For example, it seems many in the React community are moving towards using immutable data for the underlying model and pure render components with React. That means you can write efficient shouldComponentUpdate checks. However, it also means you have to design your version of whatever the "M" and "C" become similar to how you'd structure a functional program, which is not at all natural or idiomatic in JS.