1.5.3 • Published 5 years ago
@vanilla-jsx/observer v1.5.3
vanilla-jsx
Vanilla jsx without runtime.
HTML Tag return DOM in js, No virtual DOM.
const content = <div>This is content.</div>;
document.body.append(content);install and config
npm i @vanilla-jsx/jsx-runtimeand edit babel.config.js or .babelrc or other babel config:
...
presets: [
...
[
'@babel/preset-react', {
runtime: 'automatic',
importSource: '@vanilla-jsx'
}
]
]
...then, coding js with jsx.
Documentation
- Getting started
- Advanced