rupi
v1.0.0
Published
An alternative to Preact with the same syntax, size and functionality.
Downloads
1
Readme
💎 Rupi
Rupi is an alternative to Preact with the same syntax, size and functionality.
Features:
- Familiar Preact API
- So incredibly fast
- Everything you need
- Support for hooks
- Support for fragments
Install
$ npm install --save rupi
Usage
/** @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"));
Contribute
- Clone the repository
- Run the start script
- Open a PR with update