- React isn't an MVC framework.
- React doesn't use templates.
It's used by
- Khan Academy
- and more..
Two crazy ideas - Virtual DOM and Synthetic Events
Most of React's novelty comes from the Virtual DOM
Whenever anything may have changed, re-render everything to a Virtual DOM representation
Only update the real DOM with what actually what needs to be changed
And does it all at once, in most cases in a single tick of the requestAnimationFrame().
- React’s diff algorithm
- Why is React's concept of Virtual DOM said to be more performant than dirty model checking?
React uses event delegation to listen way at the top of the React tree.
The events are automatically cross-browser (they are React events). They are also much closer to W3C than any browser. That means that for example e.target works, no need to look for the event object or checking whether it's e.target or e.srcElement (IE).