Upgrading Remix v2 to React Router v7 #147
TangoYankee
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The same team develops both Remix and React Router. As they've experimented with Server Side Rendering in Remix, they have integrated their lessons-learned into React-Router. On Nov 22, 2024, they announced the full merger of the two libraries into React Router v7. Though we are required to switch from Remix to React Router to upgrade, the two libraries are meant as continuations of each other. Upgrading should not be no more daunting than a typical front end library upgrade.
The Remix upgrade guide provides step-by-step instructions.
Routing
We do have a decision to make on Routing. In React Router 7, file-based routing has changed from the default to
opt-in
with an external library. The new default is arouter.ts
file to define routes and the associated files. Personally, I find it tedious to write path names into routes. I would like to try arouter.ts
file, instead. How do other folks feel?Beta Was this translation helpful? Give feedback.
All reactions