News for hackers. Stuff that matters.
Re:React Native at Instagram by ClayFerguson on Monday February 06, 2017 @07:27PM (#13585786)
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.
Re:React Native at Instagram by ec109685 on Monday February 06, 2017 @08:29PM (#13586146)
ReactNative doesn't even have the concept of a DOM, so how can that be its dirty secret?
Re:React Native at Instagram by LeoNatan25 on Monday February 06, 2017 @08:57PM (#13586293)
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...

Re:React Native at Instagram by ClayFerguson on Monday February 06, 2017 @11:08PM (#13586927)
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.
Re:React Native at Instagram by CharlesW on Monday February 06, 2017 @07:40PM (#13585864)
> Why not just move to Web Components…

This article is about React Native, not React.

Re:React Native at Instagram by ClayFerguson on Monday February 06, 2017 @08:15PM (#13586068)
React Native uses React. React is still in the core of it.