Skip to content

Commit

Permalink
closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds authored May 6, 2022
1 parent 6adc50c commit 705be48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is an example of how you can incrementally migrate to Remix if you're using
2. Install Remix and set up the conventional files of `app/{root,entry.client,entry.server}.tsx`
3. Move all your existing code into a directory within the `app` directory (like `app/old-app` for example).
4. Remove `<BrowserRouter>` from your `App`
5. 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).
5. 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).
6. Remove all your old webpack build stuff and use the `remix` CLI instead. Your builds are now outrageously fast.
7. Everything should work at this point (_and_ it'll be server rendered too!!). Commit + push!
8. Over time, move old routes to the `routes` directory until you bring everything over.
Expand Down

0 comments on commit 705be48

Please sign in to comment.