{"id":14976568,"url":"https://github.com/dwqs/async-react-compoment","last_synced_at":"2025-10-27T20:32:07.602Z","repository":{"id":57185743,"uuid":"97930216","full_name":"dwqs/async-react-compoment","owner":"dwqs","description":":sunglasses: :eyes: :see_no_evil: Async component loaded based webpack 3 for react-router 4.[unmaintained]","archived":true,"fork":false,"pushed_at":"2017-08-13T10:48:36.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T03:34:53.828Z","etag":null,"topics":["async-component","react","react-router-v4","webpack3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwqs.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-07-21T09:22:53.000Z","updated_at":"2025-01-14T09:49:14.000Z","dependencies_parsed_at":"2022-09-06T04:10:59.134Z","dependency_job_id":null,"html_url":"https://github.com/dwqs/async-react-compoment","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fasync-react-compoment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fasync-react-compoment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fasync-react-compoment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwqs%2Fasync-react-compoment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwqs","download_url":"https://codeload.github.com/dwqs/async-react-compoment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238553303,"owners_count":19491405,"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":["async-component","react","react-router-v4","webpack3"],"created_at":"2024-09-24T13:54:04.804Z","updated_at":"2025-10-27T20:32:07.207Z","avatar_url":"https://github.com/dwqs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![npm-version](https://img.shields.io/npm/v/async-react-component.svg) ![license](https://img.shields.io/npm/l/async-react-component.svg) ![bower-license](https://img.shields.io/bower/l/async-react-component.svg)\n\n# async-react-component\n\nAsync component loaded based webpack 3 for react-router 4.\n\n## Install\n\nIt is recommended to run webpack on node 6.x or higher.\n\nInstall the pkg with npm:\n\n```\nnpm install async-react-component --save\n```\n\nor yarn\n\n```\nyarn add async-react-component\n```\n\nor bower\n\n```\nbower install async-react-component\n```\n\n## Usage\n\nFor react-router 4:\n\n```\nimport {BrowserRouter as Router, Route, Switch} from 'react-router-dom';\nimport {getAsyncComponent} from 'async-react-component';\n\n// code splitting in webpack 3: https://webpack.js.org/guides/code-splitting/#dynamic-imports\nconst App = () =\u003e import(/* webpackChunkName: \"main\" */ '../general/app/index');\nconst Info = () =\u003e import(/* webpackChunkName: \"info\" */ '@components/info/index');\n\nconst RootApp = () =\u003e {\n    return (\n        \u003cRouter\u003e\n            \u003cSwitch\u003e\n                \u003cRoute exact path='/' component={getAsyncComponent(App)}\u003e\u003c/Route\u003e\n                \u003cRoute path='/info' component={getAsyncComponent(Info)}\u003e\u003c/Route\u003e\n                \u003cRoute render={() =\u003e \u003cdiv\u003e404 not found\u003c/div\u003e}\u003e\u003c/Route\u003e\n            \u003c/Switch\u003e\n        \u003c/Router\u003e\n    );\n};\n\nReactDOM.render(\n    RootApp,\n    document.getElementById('app')\n);\n```\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwqs%2Fasync-react-compoment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwqs%2Fasync-react-compoment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwqs%2Fasync-react-compoment/lists"}