4 ms·
The dirty little secret about React is that it tries to 'reinvent' the DOM tree, and Web Components will be out soon making it all obsolete. Why not just move t
by ClayFerguson 10y ago
The dirty little secret about React is that it tries to 'reinvent' the DOM tree, and Web Components will be out soon making it all obsolete. Why not just move to Web Components NOW, and not have to rewrite your view logic in 3 or 4 years. Polymer wins easily. React got a head start, sure, but the W3C standards and native browser support for WebComponents makes React redundant and unnecessary, in the very near future.
- CharlesW 10y ago> Why not just move to Web Components… This article is about React Native, not React.
- ClayFerguson 10y agoReact Native uses React. React is still in the core of it.
- ec109685 10y agoReactNative doesn't even have the concept of a DOM, so how can that be its dirty secret?
- LeoNatan25 10y agoReact Native has the native view hierarchy as its DOM, and it also has a "shadow" view hierarchy, which is very similar to the concept of shadow DOM. https://github.com/facebook/react-native/blob/master/React/Views/RCTShadowView.h https://github.com/facebook/react-native/blob/master/React/V...
- ClayFerguson 10y agoI don't know anything about ReactNative. Nor did I claim I did. I am simply stating that React itself is a dead-end technology. I would think no one would want to use ReactNative unless they buy into the prospect of React itself having a long life ahead. But doesn't. It's a dead end. WebComponents are the future and react will be unnecessary.