jsx-stringify
v1.0.3
Published
Use with babel-plugin-transform-react-jsx to return strings from jsx
Downloads
1
Readme
jsx-stringify
A JSX Transform to make any JSX return a string containing itself, instead of an object.
import stringify from 'jsx-stringify'
/** @jsx stringify */
let example = <div>
<p>This is some JSX code!</p>
<some-component>The tags aren't validated, so use whatever you
want!</some-component>
</div>
console.log(example) //Will print out exactly as above!
document.write(example) //Write directly to the DOM!