Reactjs compatible more simple and fast virtual dom view implementation.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

What's this?

THIS PROJECT IS NOW IN BETA

The FuelDOM is React compatible virtual-dom implementation.

  • File size is smaller than Reactjs 8.79 KB gzipped (24.92 KB raw)
  • No dependencies.
  • 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 exists, but is 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.Component {
  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 smaller.
  • Improve vdom patch method to make it faster.
  • Original functionality or api.
  • Partial vdom update system (get rid of shouldComponentUpdate) like react-mvi.

Eco Systems

Now router is available fuel-router.

Contribute

Fork!

yarn install
yarn run ut+ct
yarn run minify

Send PR!