rupi
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

💎 Rupi

npm build coverage license dependencies performance

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

  1. Clone the repository
  2. Run the start script
  3. Open a PR with update

Readme

Keywords

none

Package Sidebar

Install

npm i rupi

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

561 kB

Total Files

35

Last publish

Collaborators

  • vaneenige