-
Lightweight JSX runtime with fine-grained reactivity..
-
install
hmmfirst.hmm i @minejs/jsx
-
import { jsx, Fragment, Show, For, render, mount, createRoot } from '@minejs/jsx' import { signal } from '@minejs/signals'
-
// Create simple element const el = jsx('div', { className : 'container', children : 'Hello World' }) // Create with attributes const button = jsx('button', { id : 'submit', children : 'Click me', onClick : () => console.log('Clicked!') })
-
const count = signal(0) const el = jsx('div', { children: `Count: ${count()}` }) render(el, '#app') count.set(5) // Updates DOM automatically!
-
const counter = signal(0) const button = jsx('button', { children: 'Increment', onClick: () => { counter.set(counter() + 1) } })
-
const el = jsx('div', { children: 'I notify when I appear!', onload: () => { console.log('Element added to DOM!') } })
-
// Apply Tailwind-like props directly! const card = jsx('div', { display : 'flex', direction : 'column', p : 4, // padding: 1rem gap : 2, // gap: 0.5rem bg : 'white', // background-color shadow : 'md', // box-shadow radius : 'lg', // border-radius children : 'Beautiful Card' }) // Create Overlay const modal = jsx('div', { overlay : true, backdrop : true, location : 'center', children : 'Modal Content' })
-
-
-
-
Lightweight DOM rendering library for JSX elements.
-
Lightweight JSX runtime with fine-grained reactivity.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Lightweight JSX runtime with fine-grained reactivity.
License
minejs-org/jsx
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Lightweight JSX runtime with fine-grained reactivity.

