Skip to content

Commit

Permalink
fix(docs): typos
Browse files Browse the repository at this point in the history
  • Loading branch information
zkdiff committed Feb 1, 2024
1 parent b5b9b3b commit 7b7229d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Checkout the [Example](./example/) to see a working demo

### Usage

Install the dependencies
`npm install --save-dev vite-plugin-react-router-remix-routes @remix-run/dev`
Install the dependencies `npm install --save-dev vite-plugin-react-router-remix-routes @remix-run/dev`

Configure the vite plugin

Expand All @@ -23,7 +22,7 @@ export default defineConfig(() => {
});
```

Import the remix routes from the plugin and pass to the createRouter
Import the remix routes from the plugin and pass to `createRouter()`

```
import * as React from "react";
Expand All @@ -41,5 +40,4 @@ ReactDOM.createRoot(document.getElementById("root")!).render(
);
```

This is the virtual module generated by vite to contain the file base route tree
`import remixRoutes from "react-router-remix-routes";`
This is the virtual module generated by vite to contain the file based route tree `import remixRoutes from "react-router-remix-routes";`

0 comments on commit 7b7229d

Please sign in to comment.