Re:Virtual-dom – A Virtual DOM and diffing algorithm
by jamestomasino on Thursday April 02, 2015 @10:07AM
(#9310736)
I was watching virtual-dom a while back when the documentation was less clear. It's an exciting bit of code and I love the way it tries to solve one specific problem. My challenge to use is require.js, though. Has anyone seen a fork of this that can implement virtual-dom in vanilla js without that dependency?
[ Parent
| on HN ]
Re:Virtual-dom – A Virtual DOM and diffing algorithm
by woah on Thursday April 02, 2015 @11:48AM
(#9311421)
This does not use require.js, it looks like it is using CommonJS. If you really want to put stuff in the global scope, which is a bad idea and was one of the biggest shortcomings of js for a long time, maybe this will have some answers for you: http://www.mattburkedev.com/export-a-global-to-the-window-ob...
Re:Virtual-dom – A Virtual DOM and diffing algorithm
by jamestomasino on Thursday April 02, 2015 @08:04PM
(#9313897)
Yeah, I'm not looking to put things in the global scope, but rather to avoid using AMD module loading. I'm looking for a way to explicitly load the individual JS files in the proper order. Maintaining namespacing is great.