{"id":16490419,"url":"https://github.com/yuthelloworld/react-router-demo","last_synced_at":"2026-06-03T20:31:20.002Z","repository":{"id":98300644,"uuid":"97447784","full_name":"YutHelloWorld/react-router-demo","owner":"YutHelloWorld","description":"🐛 Simple react-router demos","archived":false,"fork":false,"pushed_at":"2017-10-10T08:30:56.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T06:25:40.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YutHelloWorld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-17T07:31:05.000Z","updated_at":"2017-09-30T00:58:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1930adc-3986-488c-863c-dcedd11c460f","html_url":"https://github.com/YutHelloWorld/react-router-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YutHelloWorld/react-router-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutHelloWorld%2Freact-router-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutHelloWorld%2Freact-router-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutHelloWorld%2Freact-router-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutHelloWorld%2Freact-router-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YutHelloWorld","download_url":"https://codeload.github.com/YutHelloWorld/react-router-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YutHelloWorld%2Freact-router-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33878990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T13:47:57.339Z","updated_at":"2026-06-03T20:31:19.985Z","avatar_url":"https://github.com/YutHelloWorld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-router-demo\n\n这是一个入门React-Router的小巧Demo。这个demo里尽量不会为你带来新的所需知识。\n\n## 安装\n\n### 克隆\n```bash\n$ git clone https://github.com/yuthelloworld/react-router-demo.git \u003cmy-project-name\u003e\n$ cd \u003cmy-project-name\u003e\n```\n### 安装依赖\n\n```bash\n$ npm install\n```\n## 运行\n```bash\nnpm start\n```\n## 浏览器查看\n浏览器输入 http://localhost:8080/\n\n## 切换示例\n\n以切换 redirectAuth示例为例  \n- 编辑`webpack.config.js`\n\n```JS\nmodule.exports = {\n  entry: './index.js',\n//修改为\nmodule.exports = {\n  entry: './redirectAuth.js',\n```\n- 运行`npm start`\n\n## 可以学到什么？\n\n\n- React pure function(stateless component)\n- webpack的简单配置和使用webpack-dev-server启动一个热更新的http-server\n- React-Router的几个概念和简单应用\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuthelloworld%2Freact-router-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuthelloworld%2Freact-router-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuthelloworld%2Freact-router-demo/lists"}