Hacker News new | ask | show | jobs
by ClayFerguson 3422 days 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.
2 comments

ReactNative doesn't even have the concept of a DOM, so how can that be its dirty secret?
React 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/V...

I 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.
> Why not just move to Web Components…

This article is about React Native, not React.

React Native uses React. React is still in the core of it.