wangzf-no1 / react-lite

simple react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%