mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
htmltojsx
This commit is contained in:
@@ -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>');
|
||||
Reference in New Issue
Block a user