Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



That is retained rendering with scene graphs. Immediate-mode rendering is obviously very different.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: