Gulp Plugin to convert your html files to jsx node file or in React.createElement Format.See Below.
e.g: Input File index.html:
Hello World !
Will output index.jsx:
module{ return <div> Hello World !</div> }
## Usage Example:
const gulp = ;const jsxfier = ; gulp;
createElementOutput:
In case of createElementOutput Flag there are some important chnages to keep in Mind. InputHTML must contain a single line comment in Which you can provide variable name followed by e.g: "/<!--@HelloWorld--/>" . No numbers. So:
Input Html becomes:
<!--@HelloWorld--> <div class="dummy">{props.name}</div>
Output will be:
'use strict';const HelloWorld = { return React;};