htmltojsx

This commit is contained in:
Basarat Syed
2015-07-03 13:06:43 +10:00
parent d73cbcb405
commit 304aa490ec
2 changed files with 22 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
/// <reference path="htmltojsx.d.ts"/>
import HTMLtoJSX = require("htmltojsx");
var converter = new HTMLtoJSX({
createClass: true,
outputClassName: 'AwesomeComponent'
});
var output = converter.convert('<div>Hello world!</div>');