Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vanilla-jsx/vanilla-jsx

Vanilla jsx without runtime. HTML Tag return DOM in js, No virtual DOM.
https://github.com/vanilla-jsx/vanilla-jsx

customelements dom html-tag javascript jsx observable react vanilla vanilla-jsx vue webcomponents

Last synced: about 9 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# vanilla-jsx

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

```js
const content =

This is content.
;
document.body.append(content);
```

[Run](https://vanilla-jsx.github.io/vanilla-jsx/)

## install and config

```bash
npm i @vanilla-jsx/jsx-runtime
```

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

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

then, coding js with jsx.

[simple source](https://github.com/vanilla-jsx/vanilla-jsx/tree/main/examples/simple)

## Documentation

- Getting started
- [Lowercase is HTML Tag](https://vanilla-jsx.github.io/vanilla-jsx/#/Lowercase)
- [Kebabcase is WebComponents](https://vanilla-jsx.github.io/vanilla-jsx/#/Kebabcase)
- [PascalCase is FunctionExec](https://vanilla-jsx.github.io/vanilla-jsx/#/PascalCase)
- [with Reactive - @vanilla-jsx/observer](https://vanilla-jsx.github.io/vanilla-jsx/#/observer)
- Advanced
- [create Offscreen Canvas](https://vanilla-jsx.github.io/vanilla-jsx/#/canvas)
- [with jQuery, but not selector](https://vanilla-jsx.github.io/vanilla-jsx/#/jquery)
- [render HTML str - @vanilla-jsx/ssr](https://vanilla-jsx.github.io/vanilla-jsx/#/ssr)
- [visual Koa Middleware - @vanilla-jsx/koa](https://vanilla-jsx.github.io/vanilla-jsx/#/koa) new
- [with Markdown - @vanilla-jsx/mdx-loader](https://vanilla-jsx.github.io/vanilla-jsx/#/mdx)

and more: [https://vanilla-jsx.github.io/vanilla-jsx/](https://vanilla-jsx.github.io/vanilla-jsx/)