Rupi is an alternative to Preact with the same syntax, size and functionality.
- Familiar Preact API
- So incredibly fast
- Everything you need
- Support for hooks
- Support for fragments
$ npm install --save rupi
/** @jsx createElement */
import { createElement, Fragment, render } from "rupi";
import { useEffect } from "rupi/hooks";
function App() {
useEffect(() => {
console.log("Component has mounted!");
}, []);
return (
<Fragment>
<h1>Rupi</h1>
<p>An alternative to Preact with the same syntax, size and functionality.</p>
</Fragment>
);
}
render(<App />, document.querySelector("#root"));
- Clone the repository
- Run the start script
- Open a PR with update