The reverse of a remix routes
command
#2917
kentcdodds
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm thinking about users who want to migrate from their regular react-router apps to remix and having a command that can give them an idea of what their filesystem needs to look like to maintain their current routing scheme would be super helpful.
So you know how
remix routes
takes the routing setup and prints that to the console. What if I provided that print-out to remix and it created files to match that routing setup!? Whether people would use those outputted files directly is arguable, but it would give them a good guide to how to set up their app to make a migration easier.Additionally, creating that routing print-out might be challenging as routes can be defined in many files in a large app. So another thing that could be helpful is a script people can copy/paste in the console of their running app to print out the remix file system that would produce that same routing setup.
I think these things would really help build that bridge between react-router sites to remix sites.
Beta Was this translation helpful? Give feedback.
All reactions