@@ -18,7 +18,7 @@ react-lite is an implementation of React that optimizes for small script size.
1818| React | 0.14.3 | 136.0kb |
1919| Web Components Polyfill| 0.7.19 | 118.0kb |
2020| Riot | 2.3.11 | 20kb |
21- | React-lite | 0.0.23 | 20kb |
21+ | React-lite | 0.15.0 | 20kb |
2222
2323It supports the core APIs of React, such as Virtual DOM, intended as a drop-in
2424replacement for React, when you don't need server-side rendering in browser(no ` React.renderToString ` & ` React.renderToStaticMarkup ` ).
@@ -43,7 +43,7 @@ Note: feel free to try react-lite, if something happen and we can't fixed in tim
4343you can install react-lite from npm
4444
4545``` shell
46- npm install --save react-lite
46+ npm install react-lite --save
4747```
4848
4949## Browser compatibility
@@ -79,19 +79,14 @@ just the same as what react does, see some demos below(I just add the alias to w
7979
8080via react-lite:
8181- In browser, virtual-dom can not render to string(no ` React.renderToString ` and ` React.renderToStaticMarkup ` )
82- - event system is base on delegation pattern(since v0.0.19)
83- - all of React.PropTypes method is noop(empty function)
84- - Do not support React-addons(for example ReactCSSTransitionGroup)
82+ - all of React.PropTypes method is no-op(empty function)
8583- use React in server side rendering, and use React-lite in browser
8684 * react-lite will replace the dom tree with new dom tree
8785 * you had better avoid `script|head|link` tag in client side
88- - the rule about setting props
89- * if `propName in dom` is `true` then `dom[propName]=propValue`
90- * else: `dom.setAttribute(propName, propValue)`
9186- can not use react-dev-tool inspect react-lite, should switch to regular react for debugging
9287
9388## Test
94- react-lite reuses react's unitest(168 ), you can see them in ` __test__ ` , and run the tests with:
89+ react-lite reuses react's unitest(170 ), you can see them in ` __test__ ` , and run the tests with:
9590
9691``` shell
9792npm test
0 commit comments