0.1.2 • Published 7 years ago

fueldom v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

What's this?

NOW THIS PRODUCT IS BETA

The FuelDOM is React compatible virtual-dom implementation.

  • File size is samller than Reactjs 8.79 KB gzipped(raw 24.92 KB)
  • Change vdom patch function as using requestAnimationFrame and requestIdleCallback.
  • Compatible with jsx.

Installation

npm install fueldom --save

Now compatible with

  • JSX
  • React Component feature like setState.
  • React Component hooks like componentWillMount
  • Element Props.
  • DOM Event handler.
  • DOM Style props.
  • Component Context
  • Style
  • Element ref

Omitted

  • React.PropTypes.xxx runtime type checks(React.PropTypes is exists, but ignored).
  • Style Property name check.
  • Some error checks(maybe implemented in future).

Usage

Simple rendering

import {
  Fuel,
  React,
  FuelDOM
} from 'fueldom';

class Component extends Fuel.FuelComponent {
  render() {
    return (
      <div>
        <span>Hello World</span>
      </div>
    )
  }
}

FuelDOM.render(<Component/>, document.getElementById('app'));

Future

WE WON'T DO

  • 100% compatiblity with React.
  • React fiber.

WE WILL DO

  • Improve code size to make it more samll.
  • Improve vdom patch method to make it more fast.
  • Original functionarity or api.

Contribute

Fork!

yarn install
yarn run ut+ct
yarn run minify
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago