1.0.3 • Published 10 years ago

jsx-stringify v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
10 years ago

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!

Uses babel-plugin-transform-react-jsx

1.0.3

10 years ago

1.0.2

10 years ago