|
|
|
|
|
by strogonoff
569 days ago
|
|
> implements efficient rendering on top of the DOM diff Here your definition of React diverges from reality, I believe. React does implement state management—it sort of has to to be of any use. It is a flavour of immediate mode GUI, and some way of managing what changes and what does not change between renders is necessary. However, React famously does not know about DOM or even Web. (Unless you meant DOM in some more general sense?) People use React to make command-line interfaces, output to embedded LCD screens, etc. Yes, coupling it to Web and DOM and abandoning the separation of concerns that makes core React so general-purpose could probably make React a bit smaller, but I think projects like Preact are welcome to do it instead. |
|
I was trying to point at the fact that rendering occurs on top of state management, as opposed to saying that "React is a rendering library".