Name: react-lite
Owner: cockpit-project
Description: Temporary fork of react-lite with open pull requests
Created: 2016-03-31 18:43:41.0
Updated: 2018-02-12 13:03:23.0
Pushed: 2017-06-02 19:48:19.0
Homepage: null
Size: 5756
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This fork of term.js has the following open pull requests included:
react-lite is an implementation of React that optimizes for small script size.
| Framework | Version | Minified Size | |————————|————|—————| | Ember | 2.2.0 | 446.0kb | | Polymer | 1.0.6 | 183.0kb | | Angular | 1.4.8 | 148.0kb | | React | 0.14.3 | 136.0kb | | Web Components Polyfill| 0.7.19 | 118.0kb | | Riot | 2.3.11 | 20kb | | React-lite | 0.15.6 | 25kb |
React-lite 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 in browser(no React.renderToString
& React.renderToStaticMarkup
).
If you are using webpack, it's so easy to use react-lite, just config alias in webpack.config.js:
ebpack.config.js
resolve: {
alias: {
'react': 'react-lite',
'react-dom': 'react-lite'
}
}
Note: feel free to try react-lite, if something happen and we can't fix it in time, then use regular react instead.
You can install react-lite from npm:
install react-lite --save
supports IE9+ / ES5 enviroment
learn react-lite from React official documentation
just the same as what react does, see some demos below(I just add the alias to webpack.config.js, no need to do anything else):
via react-lite:
script|head|link
tag in client sidereact-lite reuses react's unitest(170), you can see them in __test__
, and run the tests with:
test
License: MIT (See LICENSE file for details)