Welcome to remix-run/react-router-examples, the community-driven repository.
Here you'll find various examples of using React Router to accomplish certain tasks.
Each example is a complete application including a build and even a button to preview a live instance of the app so you can play with it.
Remember to check out the README for each example before getting started.
You can also initialize a new project with any of these examples using the --template flag of the create-react-router CLI.
For example:
npx create-react-router@latest --template remix-run/react-router-examples/<example-dir>Enjoy!
Please see our contribution guide.
Examples on main use version 7. Prior version examples are archived into branches: