4 ms·
Most of React's novelty, I think, comes from the Virtual DOM. Your view spits out a DOM tree using the React.DOM.* objects. The JSX allows you generate the appr
by themckman 13y ago
Most of React's novelty, I think, comes from the Virtual DOM. Your view spits out a DOM tree using the React.DOM.* objects. The JSX allows you generate the appropriate calls to those constructors by writing something that more resembles HTML. You can't just use Handlebars, etc.
- hbbio 13y agoIt's not exactly novel. Opa (http://opalang.org http://opalang.org) has been doing this for a few years...
- jbeja 13y agoOpa should be more popular.
- taivare 13y agoAlso, fruitmachine (Github)- Financial Times - Graphics Lab. They say it handles multiple pages better then React. They also claim to have had the React concept first.
- jbeja 13y agoI never hear of it, i will give it a look. Thanks
- SkyMarshal 13y agoFwiw the Lift web framework has been diffing a server-side virtual DOM back to the client-side DOM via Ajax since 2007. And I wouldn't be surprised if the concept existed elsewhere even before that. Claims to be the first to have had the idea should be taken with a grain of salt.
- thesnider 13y agoIf only opa were released under a license that let normal people feel safe about experimenting with it/reading its source :(.
- hbbio 13y agoMost of Opa is now licensed under the MIT license and all of it is open source. We changed the license two years ago.
- porker 13y agoI'd never heard of Opa before. Thanks for sharing, it looks interesting!