You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Folders do not participate in routing, so you can organize your routes however you want. As long as the file has .route in the name, Remix will find it and turn it into a route.
URL
matchRoutes
/about
app/routes/about.route.tsx
/concerts/trending
app/routes/concerts.trending.route.tsx
/concerts/salt-lake-city
app/routes/concerts.$city.route.tsx
/projects
app/routes/projects/index.route.tsx
And developer can custom the extension name. Default extension is route.tsx, can change to page.tsx or any others.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
like remix-custom-routes and vite-plugin-pages
.route.tsx
,.route.ts
,.route.jsx
, or.route.js
will be treated as a route..route
in the name, Remix will find it and turn it into a route.And developer can custom the extension name. Default extension is
route.tsx
, can change topage.tsx
or any others.Beta Was this translation helpful? Give feedback.
All reactions