Giter VIP home page Giter VIP logo

anu's Introduction

anujs

GitHub license npm version CircleCI PRs Welcome Qunar.com

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.
  8. Support wechat miniapp(微信小程序) https://rubylouvre.github.io/nanachi/

boilerplate

License

MIT

webpack config

resolve: {
    alias: {
       'react': 'anujs',
       'react-dom': 'anujs',
        'react-dom/server': 'anujs/dist/React/server',//在dist下面有一个Reac目录
         // 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

anu's People

Contributors

rubylouvre avatar roland-reed avatar gaoxiaomumu avatar gandao avatar yvanwangl avatar ambit-tsai avatar zeromake avatar pepperyan avatar yongningfu avatar tiye avatar hellosean1025 avatar onlyling avatar enducode avatar dgeibi avatar jounqin avatar niuzhuang avatar abnercrack avatar gaterking avatar whatwewant avatar lizheming avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.