Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
ct
 
 
 
 
lib
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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!

About

Reactjs compatible more simple and fast virtual dom view implementation.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.