@@ -5,7 +5,7 @@ React under 20k.
55react-lite is an implementation of React that optimizes for small script size.
66
77It supports the core APIs of React, such as Virtual DOM, intended as a drop-in
8- replacement for React, when you don't need server-side rendering in browser.
8+ replacement for React, when you don't need server-side rendering in browser(no React.renderToString/React.renderToStaticMarkup) .
99
1010If you are using webpack, it's so easy to use react-lite, just config alias in webpack.config.js:
1111
@@ -17,18 +17,36 @@ If you are using webpack, it's so easy to use react-lite, just config alias in w
1717 }
1818}
1919```
20+ ## install
2021
21- ## test and install
22- react-lite reuse react's unitest(155), you can see them in ` __test__ ` , an run the test with:
22+ you can install react-lite from npm
2323
2424``` shell
25- npm test
25+ npm install --save react-lite
2626```
2727
28- you can install react-lite from npm
28+ ## what can react-lite do?
29+
30+ just the same as what react do, see some demos below(I just make add alias from webpack.config.js, did'nt do anything else):
31+
32+ - react-lite work with react-router: [ expamles] ( https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/react-router-examples/index.html )
33+ - react-lite work with redux:
34+ * [async](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/redux-examples/async/index.html)
35+ * [counter](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/redux-examples/counter/index.html)
36+ * [real-world](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/redux-examples/real-world/index.html)
37+ * [shopping-cart](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/redux-examples/shopping-cart/index.html)
38+ * [todomvc](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/redux-examples/todomvc/index.html)
39+ * [todos-with-undo](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/redux-examples/todos-with-undo/index.html)
40+ - react-lite work with react-motion: [ demos] ( https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/react-motion-demos/index.html )
41+ - js-repaint-perf(which is faster?):
42+ * [react](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/js-repaint-perf/react/index.html)
43+ * [react-lite](https://cdn.rawgit.com/Lucifier129/react-lite/master/examples/js-repaint-perf/react/lite.html)
44+
45+ ## test
46+ react-lite reuse react's unitest(155), you can see them in ` __test__ ` , an run the test with:
2947
3048``` shell
31- npm install --save react-lite
49+ npm test
3250```
3351
3452License: MIT (See LICENSE file for details)
0 commit comments