Overview - Creating routes
What is it?
Creating routes in Remix means defining the different pages or views your web app can show. Each route corresponds to a URL path and tells Remix what content to display when someone visits that path. Routes are created by adding files or folders in a special directory, and Remix automatically turns them into pages. This makes building navigation simple and organized.
Why it matters
Without routes, a web app would be like a book with no chapters or table of contents — users wouldn't know how to find different pages or features. Routes let users move around your app easily and help developers organize code by page. Remix's routing system also handles loading data and rendering pages efficiently, making apps faster and smoother.
Where it fits
Before learning routes, you should understand basic React components and file structure. After mastering routes, you can learn nested routing, data loading with loaders, and advanced features like route actions and error boundaries. Routes are a core part of building any Remix app.