Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/0x-jerry/rsx
- Owner: 0x-jerry
- Created: 2023-04-09T04:07:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T20:57:43.000Z (9 days ago)
- Last Synced: 2024-11-05T21:41:01.895Z (9 days ago)
- Topics: jsx, reactive
- Language: TypeScript
- Homepage:
- Size: 244 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
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')
```