怎样在小程序里实现标题的更改
788
2022-10-28
一个无痛使用React与jsX的迷你React框架
npm install anujs
A mini React-like framework that is extremely compatible with React16。 QQ group: 370262116
source: https://bundlephobia.com/
advantage:
Support various new features of React16, Fragment, componentDidCatch, creactContext, createRef, forwardRef...The size is very small (only 3000 lines, gzip only 13kb, one third of React+ReactDOM)Pass more than 700 official unit tests (other mini libraries can not run the official test)Share the huge ecology of React(React-router-dom, react-router-redux, react-lazy-load, react-hot-loader...)Supports 99% antd components (antdis an enterprise-class UI components in China).Excellent browser compatibility, easy to handle all kinds of business under IE6-8.It comes with a painless state manager Rematch and a handy router Reach.
nanachi
nanachi已经交回原公司 qunar.com 维护了,不放在此仓库 ,详见 https://qunarcorp.github.io/anu
boilerplate
https://github.com/RubyLouvre/anu-ie8-example (IE8)https://github.com/magicapple/anujs-webpack4-ie7-8https://gitee.com/menhal/React_IE8_boilerplatehttps://github.com/meeteason/react-webpack-ie6-boilerplate
License
MIT
webpack config
resolve: { alias: { 'react': 'anujs', 'react-dom': 'anujs', // For compatibility with IE please use the following configuration // 'react': 'anujs/dist/ReactIE', // 'react-dom': 'anujs/dist/ReactIE', // 'redux': 'anujs/lib/ReduxIE', /// This is mainly for IE6-8, because of the poor performance of the isPlainObject method in the official source code. // If you reference prop-types or create-react-class // Need to add the following alias 'prop-types': 'anujs/lib/ReactPropTypes', 'create-react-class': 'anujs/lib/createClass', // If you use the onTouchTap event on the mobile side 'react-tap-event-plugin': 'anujs/lib/injectTapEventPlugin', }},
Testing
npm test
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~