2 ms·
Have you ever programmed graphics? To make a paralell, usually in graphics your main loop reacts to events (user input) and you change some internal state in s
by hcarvalhoalves 13y ago
Have you ever programmed graphics?
To make a paralell, usually in graphics your main loop reacts to events (user input) and you change some internal state in some object(s). Finally, you get all those objects that know how to render themselves, see what's relevant and render the whole scene. You don't have to care about pixels, you just react to events and blit a representation of the entire state.
React.js is the same, the difference being your components "render" themselves to the DOM, and because it's a tree, it's naturally composable. It's still a pipeline taking state and outputing a representation though.
- seanmcdirmid 13y agoThat is retained rendering with scene graphs. Immediate-mode rendering is obviously very different.