1.5.3 • Published 3 years ago

@vanilla-jsx/router v1.5.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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);

Run

install and config

npm i @vanilla-jsx/jsx-runtime

and edit babel.config.js or .babelrc or other babel config:

...
    presets: [
        ...
        [
            '@babel/preset-react', {
                runtime: 'automatic',
                importSource: '@vanilla-jsx'
            }
        ]
    ]
...

then, coding js with jsx.

simple source

Documentation

and more: https://vanilla-jsx.github.io/vanilla-jsx/