|
|
|
|
|
by kensign
3605 days ago
|
|
Well it doesn't simplify development and that's the point, it's not a clean separation of concerns.
It defies the whole purpose of using CSS, the DOM API and keeping your javascript's structural patterns cohesive. This is why Webcomponents are now part of the living standard. The browser runtime nullifies whatever React was trying to achieve. |
|
On the contrary, it's very clean.
The real separation of concerns is between business logic and view code, and React does that perfectly.
Not between HTML, CSS, DOM etc which are artificial inflated concerns due to how the browser ended up as an ad-hoc application coding platform (from it's "document" viewer beginnings, which is where the "D" in the DOM comes from).
(And of course nothing stops you from using CSS and external styles with React, separating style from behavior).
>This is why Webcomponents are now part of the living standard.
Web components only solve the non-interesting parts of what React does. Namely, isolated components. All the state and management mess for the entire app is still yours to deal with. Even React alone does more, nevermind React+Redux/FLUX etc.
Which is also the reason React caught like wildfire, and nobody much cares for Webcomponents (e.g. not any statistically significant numbers).