Vanilla Jsx Save

Vanilla jsx without runtime. HTML Tag return DOM in js, No virtual DOM.

Project README

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/

Open Source Agenda is not affiliated with "Vanilla Jsx" Project. README Source: vanilla-jsx/vanilla-jsx

Open Source Agenda Badge

Open Source Agenda Rating