0.1.3 • Published 3 years ago
@whatsup-js/jsx v0.1.3
Whats Up Jsx mutator and renderer
Install
npm i @whatsup/jsx @whatsup/babel-plugin-transform-jsx
Settings
Update the plugin section in your .babelrc
file.
{
"plugins": ["@whatsup/transform-jsx"]
}
Usage
import { render } from '@whatsup/jsx'
const App = fractal(async function* () {
while (true) {
yield <div>Hello world</div>
}
})
render(App, document.getElementById('app'))