News for hackers. Stuff that matters.
Re:React 15.4 by tengbretson on Wednesday November 16, 2016 @02:08PM (#12970283)
I guess I fail to see the value of this. If you don't want the component lifecycle, event system, or DOM diffing that React gives you, you might as well just write your own declarative wrapper around `document.createElement(...)` and be done with it. You can achieve this for templating alone in < 10 lines of code, and if you want to add some event delegating on top of it you can include that for another ~30.
Re:React 15.4 by farthenfurter on Wednesday November 16, 2016 @02:26PM (#12970507)
Right - DOM diffing is the key selling point of React. But the fine-grained screen updates possible via DOM diffing is not super important for most applications.

Event system is already supported by DOM. React doesn't add anything there. Component lifecycle is also not compelling.

Re:React 15.4 by tengbretson on Wednesday November 16, 2016 @02:31PM (#12970560)
That's kind of what I'm saying. If you don't value those things, why introduce a library at all? What you're describing can be implemented in < 10 lines.
Re:React 15.4 by farthenfurter on Wednesday November 16, 2016 @03:22PM (#12971096)
More like 200 lines, so it is useful to have a library. BTW it is rare to hear component lifecycle and event system described as key selling points of React. Most people would say DOM diffing and perf are the key selling points.
Re:React 15.4 by magic_quotes on Wednesday November 16, 2016 @04:39PM (#12971828)
The point of React is to make it practical to structure view logic as a function (projection) of the application state. Virtual DOM is just an implementation detail.
Re:React 15.4 by magic_quotes on Wednesday November 16, 2016 @04:49PM (#12971902)
By the way, for the most minimal diffing implementation see https://github.com/patrick-steele-idem/morphdom.
Re:React 15.4 by tengbretson on Wednesday November 16, 2016 @04:03PM (#12971495)
I lied. More like 5 lines. http://codepen.io/anon/pen/MbjLMB