- 🌞 JSX that returns nodes
- 💎 Supports Attributes & Events
- 🎉 No Virtual DOM
- ⚡ Small size (285 B)
npx create-solojsx-app
npx create-solojsx-app project-name
bunx create-solojsx-app-bun
bunx create-solojsx-app-bun project-name
import solojsx from 'solojsx';
const element = (
<div>
<h1>SoloJSX</h1>
<p>SoloJSX is a library that returns nodes from JSX</p>
</div>
);
document.body.appendChild(element);
const onClick = (text: string) => alert(text);
const e = <div style="color: red" onclick={() => onClick("Hi")}>Click Me</div>;
const e = <div>
List of divs:
<br />
{[1, 2, 3].map(i => <div>{i}</div>)}
</div>;
MIT