ReactJs to typescript adapter
- support class
- ReactJs declarations
0.1 (Project in work)
git clone https://github.com/margai/ReactTS.git
declare var module:any;
import React=require ("./lib/ReactTS");
class Test extends React.BaseComponent {
render() {
return React.DOM.div(null, "hello world");
}
};
React.registerModule(module);
export=Test;
import React=require ("./lib/ReactTS");
import Test=require ("./component");
React.renderComponent(
React.DOM.div(null,
new Test(null,null),
new Test(null,null)
)
,document.body);