{"id":19916859,"url":"https://github.com/rubylouvre/anu","last_synced_at":"2025-04-11T06:17:15.236Z","repository":{"id":57307726,"uuid":"83402280","full_name":"RubyLouvre/anu","owner":"RubyLouvre","description":"the React16-compat library with hooks ","archived":false,"fork":false,"pushed_at":"2020-09-18T02:59:39.000Z","size":43032,"stargazers_count":3182,"open_issues_count":38,"forks_count":318,"subscribers_count":111,"default_branch":"master","last_synced_at":"2025-04-11T06:17:09.732Z","etag":null,"topics":["anu","react","wechat-mini-program","zhifubao-mini-program"],"latest_commit_sha":null,"homepage":"https://rubylouvre.github.io/anu/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubyLouvre.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-28T07:20:30.000Z","updated_at":"2025-03-25T06:35:58.000Z","dependencies_parsed_at":"2022-09-17T21:54:51.571Z","dependency_job_id":null,"html_url":"https://github.com/RubyLouvre/anu","commit_stats":null,"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyLouvre","download_url":"https://codeload.github.com/RubyLouvre/anu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351394,"owners_count":21089272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anu","react","wechat-mini-program","zhifubao-mini-program"],"created_at":"2024-11-12T21:47:50.078Z","updated_at":"2025-04-11T06:17:15.206Z","avatar_url":"https://github.com/RubyLouvre.png","language":"JavaScript","readme":"\n![anujs](https://github.com/RubyLouvre/anu/blob/master/lib/logo.png?raw=true)\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Rubylouvre/anu/blob/master/LICENSE) \n[![npm version](https://img.shields.io/npm/v/anujs.svg?style=flat)](https://www.npmjs.com/package/anujs)\n[![CircleCI](https://circleci.com/gh/RubyLouvre/anu/tree/master.svg?style=svg)](https://circleci.com/gh/RubyLouvre/anu/tree/master)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/RubyLouvre/anu/pulls)\n\n\n\n```bash\nnpm install anujs\n```\n\nA mini React-like framework that is extremely compatible with  React16。\nQQ group：  370262116\n\n![size](https://wx1.sinaimg.cn/mw690/7109e87fly1frfqw50lduj21kw0rzk0h.jpg)\n\nsource： https://bundlephobia.com/\n\n### advantage：\n\n1. Support various new features of **React16**, Fragment, componentDidCatch, creactContext, createRef, forwardRef...\n2. The size is very small (only 3000 lines, gzip only 13kb, one third of React+ReactDOM)\n3. Pass more than 700 official unit tests  (other mini libraries can not run the official test)\n4. Share the huge ecology of React（React-router-dom, react-router-redux, react-lazy-load, react-hot-loader...）\n5. Supports 99% antd components (`antd`is an enterprise-class UI components in China).\n6. Excellent browser compatibility, easy to handle all kinds of business under IE6-8.\n7. It comes with a painless state manager **Rematch** and a handy router **Reach**.\n\n### nanachi\n\nnanachi已经交回原公司 qunar.com 维护了，不放在此仓库 ，详见 https://qunarcorp.github.io/anu\n\n### boilerplate \n\n\n* https://github.com/RubyLouvre/anu-ie8-example (IE8)\n* https://github.com/magicapple/anujs-webpack4-ie7-8\n* https://gitee.com/menhal/React_IE8_boilerplate\n* https://github.com/meeteason/react-webpack-ie6-boilerplate\n\n### License\n\nMIT\n\n### webpack config\n\n```js\nresolve: {\n    alias: {\n       'react': 'anujs',\n       'react-dom': 'anujs',\n         // For compatibility with IE please use the following configuration\n         // 'react': 'anujs/dist/ReactIE',\n         // 'react-dom': 'anujs/dist/ReactIE',\n         // 'redux': 'anujs/lib/ReduxIE', /// This is mainly for IE6-8, because of the poor performance of the isPlainObject method in the official source code.\n         // If you reference prop-types or create-react-class\n         // Need to add the following alias\n         'prop-types': 'anujs/lib/ReactPropTypes',\n         'create-react-class': 'anujs/lib/createClass',\n         // If you use the onTouchTap event on the mobile side\n         'react-tap-event-plugin': 'anujs/lib/injectTapEventPlugin',\n    }\n},\n```\n\n\n### Testing\n\n```\nnpm test\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubylouvre%2Fanu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubylouvre%2Fanu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubylouvre%2Fanu/lists"}