{"id":15651283,"url":"https://github.com/jaredly/react-router","last_synced_at":"2025-04-30T18:44:15.905Z","repository":{"id":13753696,"uuid":"16448300","full_name":"jaredly/react-router","owner":"jaredly","description":"An integrated router for react","archived":false,"fork":false,"pushed_at":"2014-07-15T22:10:56.000Z","size":226,"stargazers_count":33,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T18:51:10.772Z","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/jaredly.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}},"created_at":"2014-02-02T03:40:04.000Z","updated_at":"2021-05-05T01:26:05.000Z","dependencies_parsed_at":"2022-09-18T01:11:50.791Z","dependency_job_id":null,"html_url":"https://github.com/jaredly/react-router","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freact-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freact-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freact-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freact-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredly","download_url":"https://codeload.github.com/jaredly/react-router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251765024,"owners_count":21640125,"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":[],"created_at":"2024-10-03T12:37:48.005Z","updated_at":"2025-04-30T18:44:15.853Z","avatar_url":"https://github.com/jaredly.png","language":"JavaScript","readme":"\nReact Router is heavily inspired by Ember, but with some key differences that\nare distinctive to the React paradigm.\n\nIt is implemented as a mixin.\n\n**currently in heavy development**\n\nBenefits:\n\n- route is tied to state\n- setting page title is handled for you\n- routes are defined declaratively\n- routes are defined locally, one level at a time\n\n```js\nvar Router = require('react-router')\n  , ListProjects = require('./list-projects.jsx')\n  , NewProject = require('./new-project.jsx')\n  , Project = require('./project.jsx')\n\nvar Projects = React.createClass({\n  mixins: [Router],\n  routes: {\n    '/': ListProjects,\n    '/new': NewProject,\n    '/*': [Project, function () {\n      return {\n        projectList: this.goTo.bind(null, '/')\n      }\n    }]\n  },\n  title: function () {\n    return 'Project List'\n  },\n  render: function () {\n    return (\n      \u003cdiv className='projects'\u003e\n        {this.outlet()}\n      \u003c/div\u003e\n    )\n  }\n})\n\n```\n\n","funding_links":[],"categories":["Awesome React"],"sub_categories":["Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Freact-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredly%2Freact-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Freact-router/lists"}