Skip to content

liyang1987jay/react-lite

 
 

Repository files navigation

react-lite

Introduction

React under 30k. react-lite is an implementation of React that optimizes for small script size.

It supports the core APIs of React, such as Virtual DOM, intended as a drop-in replacement for React, when you don't need server-side rendering. If you want to support IE9-, use the "jquery-react.js" version in dist directory.

React API now are supporting:

  • React.createElement
  • React.createClass
  • React.render
  • React.unmountComponentAtNode
  • React.Component
  • React.findDOMNode (the same as React V0.14)
  • React.Children (just for ignore error)
  • React.PropTypes (just for ignore error)

test

react-lite reuse some react's unitest, you can see them in __test__, an run the test with:

npm test

License: MIT (See LICENSE file for details)

About

simple react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%