{"id":13720607,"url":"https://github.com/kentcdodds/incremental-react-router-to-remix-upgrade-path","last_synced_at":"2025-04-22T23:51:10.114Z","repository":{"id":66052788,"uuid":"489102220","full_name":"kentcdodds/incremental-react-router-to-remix-upgrade-path","owner":"kentcdodds","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-12T17:05:24.000Z","size":212,"stargazers_count":60,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T20:11:16.372Z","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/kentcdodds.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}},"created_at":"2022-05-05T19:30:41.000Z","updated_at":"2024-10-31T15:02:29.000Z","dependencies_parsed_at":"2023-05-02T23:00:47.615Z","dependency_job_id":null,"html_url":"https://github.com/kentcdodds/incremental-react-router-to-remix-upgrade-path","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fincremental-react-router-to-remix-upgrade-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fincremental-react-router-to-remix-upgrade-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fincremental-react-router-to-remix-upgrade-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fincremental-react-router-to-remix-upgrade-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/incremental-react-router-to-remix-upgrade-path/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343909,"owners_count":21415037,"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-08-03T01:01:05.797Z","updated_at":"2025-04-22T23:51:10.098Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","funding_links":[],"categories":["Examples"],"sub_categories":[],"readme":"# React Router + Remix\n\nThis is an example of how you can incrementally migrate to Remix if you're using React Router. Here's the basic idea:\n\n1. Upgrade your React Router site to the latest version of React Router ([find out how to do this iteratively](https://www.npmjs.com/package/react-router-dom-v5-compat)).\n2. Install Remix and set up the conventional files of `app/{root,entry.client,entry.server}.tsx`\n3. Move all your existing code into a directory within the `app` directory (like `app/old-app` for example).\n4. Remove `\u003cBrowserRouter\u003e` from your `App`\n5. Create a `app/routes/$.tsx` file with just `export { default } from \"~/old-app/app\";` (or whatever file has the root component for your existing React Router app).\n6. Remove all your old webpack build stuff and use the `remix` CLI instead. Your builds are now outrageously fast.\n7. Everything should work at this point (_and_ it'll be server rendered too!!). Commit + push!\n8. Over time, move old routes to the `routes` directory until you bring everything over.\n9. You're done!\n\nWe'll have better docs and even videos about this in the future, but this is a pretty darn solid and iterative approach with quick wins and a clear path.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fincremental-react-router-to-remix-upgrade-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fincremental-react-router-to-remix-upgrade-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fincremental-react-router-to-remix-upgrade-path/lists"}