Skip to content

Commit

Permalink
Update code block languages in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vjee committed Dec 11, 2021
1 parent d5cee81 commit 7c615b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Use [Remix](https://github.com/remix-run/remix) routing in your [Vite](https://g

## Plugin config

```ts
```js
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import remixRoutes from "vite-plugin-remix-routes";
Expand All @@ -16,7 +16,7 @@ export default defineConfig({

**With options:**

```ts
```js
remixRoutes({
/* options here */
});
Expand Down Expand Up @@ -55,13 +55,13 @@ A route's `id` is the component path without extension.

## Usage

```ts
```js
import routes from "virtual:remix-routes";
```

**Example:**

```tsx
```jsx
import { render } from "react-dom";
import { BrowserRouter, useRoutes } from "react-router-dom";
import routes from "virtual:remix-routes";
Expand Down

0 comments on commit 7c615b7

Please sign in to comment.