5 ms·
React is nice. I've created a simple library that shares same core concept - map DOM to Javascript objects. The difference is my lib uses Javascript standard da
by gcao 13y ago
React is nice. I've created a simple library that shares same core concept - map DOM to Javascript objects. The difference is my lib uses Javascript standard data type, array, to represent tag, and hash(or object) to represent attributes, and strings for text contents. With a few tricks, I got a very powerful library - http://github.com/gcao/T.js http://github.com/gcao/T.js. You can see an example written in CoffeeScript here
https://gist.github.com/gcao/8363743 https://gist.github.com/gcao/8363743