Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/0x-jerry/rsx

jsx but reactive
https://github.com/0x-jerry/rsx

jsx reactive

Last synced: 3 days ago
JSON representation

jsx but reactive

Awesome Lists containing this project

README

        

# RSX(Reactive JSX)

> This is an experiment library.

A library try to convert `jsx` to dom, and combine with `@vue/reactivity`'s reactive system.

# Counter Demo

```jsx
import { ref, mountApp } from './core'

const Counter = () => {
const count = ref(0)

const el = (
count.value++} data-count={count}>
count: {count}

)

return el
}

const app =

console.log(app instanceof HTMLElement) // true

mountApp(app, '#app')
```