lima-react

1.0.1 • Public • Published

Lima 🐈

  • Lima is my (class-based) rewrite of React (at least it's basic API)

Files

  • example application using Lima in /example/src
  • rewrite lives in /src

Install

  • to run example app, run cd example; npm install; npm start
  • to play around with Lima in your project, run npm install lima-react --save
  • see example app for build requirements (webpack / babel / jsx transpile, etc)

Features

  • Lima's API is slightly different from React:
    • You can only write class components that extend the Lima.Component base class (for simplicity)
    • Lima requires you to "initialize" your components before RenderDOM is invoked For each component, you have to pass a self reference to super in the constructor (to keep track of instances internally as the jsx transpiler loses track of the class references)
    • Lima can't handle self-closing tags on native elements, like input etc. so make sure you explicitly close these tags, ie...

Other & WIP

  • If I find the time, include an implementation of react-router and redux
  • However, that would require a context api which is another todo

Readme

Keywords

Package Sidebar

Install

npm i lima-react

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

17.1 kB

Total Files

13

Last publish

Collaborators

  • nicholasmueller