Skip to content

Commit

Permalink
Update README.md with Route File Naming v2 instructions (#22)
Browse files Browse the repository at this point in the history
Since the route file convention is changing in v2 update the readme guide.
  • Loading branch information
maitkaa committed Aug 24, 2023
1 parent 0ad652e commit 5c50e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function App() {

#### Add the action route

Create a file in `/routes/action/set-theme.ts` with the content below. Ensure
Create a file in `/routes/action/set-theme.ts` or `/routes/action.set-theme.ts` when using [Route File Naming v2](https://remix.run/docs/en/1.19.3/file-conventions/route-files-v2#route-file-naming-v2) with the content below. Ensure
that you pass the filename to the `ThemeProvider` component.

> Note: You can name the action route whatever you want. Just make sure you pass
Expand Down

0 comments on commit 5c50e0a

Please sign in to comment.