A minimal React-like framework in TypeScript. Fast, tiny, and hackable.
- JSX-like API:
createElement,Fragment, function components - Tiny render engine
- Written in TypeScript
- Rollup for bundling
Using npm:
npm i elemixUsing yarn:
yarn add elemixUsing pnpm:
pnpm add elemixUsing bun:
bun add elemixpnpm installpnpm run buildOutputs to dist/ as ES and UMD modules, plus types.
pnpm run devRuns TypeScript in watch mode.
pnpm run previewServes the dist/ folder (needs serve installed globally or as a dev dep).
import { createElement, render, Fragment } from "elemix";
const App = () => (
<Fragment>
<h1>Hello Elemix</h1>
<p>Minimal React-like framework</p>
</Fragment>
);
render(<App />, document.getElementById("app"));MIT.