4 ms·
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. Mo
by farthenfurter 10y ago
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.
- tengbretson 10y agoI lied. More like 5 lines. http://codepen.io/anon/pen/MbjLMB http://codepen.io/anon/pen/MbjLMB
- magic_quotes 10y agoThe 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.
- magic_quotes 10y agoBy the way, for the most minimal diffing implementation see https://github.com/patrick-steele-idem/morphdom https://github.com/patrick-steele-idem/morphdom.