Cool story bro. Tell us how you really feel. Reminds me of all the articles saying we shouldn't use JS for EVERYTHING from a few years ago. (Just use HTML and CSS!) Since React is a generic, functional render framework, I think is is appropriate for anything that needs to render more than once on a webpage, even if that thing is SVG or canvas. Overkill? Sure, sometimes, but if your goal is to get the ineraction done as quickly as possible, the 'cost' of using react is negligible.
ahh so they replicated a tiny subset of HTML/CSS that renders from react virtual dom to canvas. For something reason I thought you meant something else.
React core is just a way of defining a structured hierarchy with automatic diffing and lifecycle hooks. You could target webgl, svg, html, css, native ios, etc. there already exist several projects that do. It's not necessarily emulating a subset of HTML/CSS. It can operate on any set of primitives that are representable as a structured hierarchy. http://facebook.github.io/react/blog/2015/07/03/react-v0.14-beta-1.html
The concept is so new, no-one has a firm name for them yet. However, they are, by definition, "render targets," so I think that name is appropriate. Just like game engines have platform targets (xbox, pc, mac, etc).
3
u/dwighthouse Aug 27 '15
Cool story bro. Tell us how you really feel. Reminds me of all the articles saying we shouldn't use JS for EVERYTHING from a few years ago. (Just use HTML and CSS!) Since React is a generic, functional render framework, I think is is appropriate for anything that needs to render more than once on a webpage, even if that thing is SVG or canvas. Overkill? Sure, sometimes, but if your goal is to get the ineraction done as quickly as possible, the 'cost' of using react is negligible.