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.
npm install fueldom --save
- JSX
- React Component feature like
setState
. - React Component hooks like
componentWillMount
- Element Props.
- DOM Event handler.
- DOM Style props.
- Component Context
- Style
- Element ref
- React.PropTypes.xxx runtime type checks (React.PropTypes exists, but is ignored).
- Style Property name check.
- Some error checks (maybe implemented in future).
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'));
- 100% compatiblity with React.
- React fiber.
- 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.
Now router is available fuel-router.
Fork!
yarn install
yarn run ut+ct
yarn run minify
Send PR!