anujs

带有钩子的 React16-compat 库。「the React16-compat library with hooks」

Github星跟蹤圖

anujs

GitHub license
npm version
CircleCI
PRs Welcome

npm install anujs

A mini React-like framework that is extremely compatible with React16。
QQ group: 370262116

size

source: https://bundlephobia.com/

advantage:

  1. Support various new features of React16, Fragment, componentDidCatch, creactContext, createRef, forwardRef...
  2. The size is very small (only 3000 lines, gzip only 13kb, one third of React+ReactDOM)
  3. Pass more than 700 official unit tests (other mini libraries can not run the official test)
  4. Share the huge ecology of React(React-router-dom, react-router-redux, react-lazy-load, react-hot-loader...)
  5. Supports 99% antd components (antdis an enterprise-class UI components in China).
  6. Excellent browser compatibility, easy to handle all kinds of business under IE6-8.
  7. It comes with a painless state manager Rematch and a handy router Reach.

nanachi

nanachi已经交回原公司 qunar.com 维护了,不放在此仓库

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

主要指標

概覽
名稱與所有者RubyLouvre/anu
主編程語言JavaScript
編程語言JavaScript (語言數: 2)
平台
許可證Apache License 2.0
所有者活动
創建於2017-02-28 07:20:30
推送於2020-09-18 02:59:39
最后一次提交2020-02-24 11:45:38
發布數81
最新版本名稱v1.6.1 (發布於 2019-10-11 14:28:32)
第一版名稱chapter5 (發布於 2017-03-21 00:34:07)
用户参与
星數3.2k
關注者數111
派生數317
提交數5.1k
已啟用問題?
問題數262
打開的問題數36
拉請求數900
打開的拉請求數2
關閉的拉請求數75
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?