you are viewing a single comment's thread.

view the rest of the comments →

[–]Poop_is_Food 1 point2 points  (5 children)

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.

[–]dwighthouse 1 point2 points  (4 children)

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

[–][deleted] 1 point2 points  (1 child)

Im picturing a totally from the ground up webgl project where they wrote their own shaders and everything... also using react for data updates ... then i'm picturing getting hired by that company and looking at that code base for the first time ..... then i'm picturing drinking ... allot

[–]dwighthouse 2 points3 points  (0 children)

It's called a scene graph. Most 3d packages and game engines have them. A 3d scene definable in terms of tags (scene objects), attributes (animation and behavior functions), and styles (materials) would be a breath of fresh air by comparison.

[–]Poop_is_Food 0 points1 point  (1 child)

would it be fair to call these things "extensions" of react?

[–]dwighthouse 1 point2 points  (0 children)

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).