Skip to content

Commit 3ad97ce

Browse files
chrille0313timdorr
andauthored
docs: update imports in installation.md (#14176)
Co-authored-by: Tim Dorr <[email protected]>
1 parent 105fdac commit 3ad97ce

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
- chasinhues
7373
- chensokheng
7474
- chr33s
75+
- chrille0313
7576
- chrisngobanh
7677
- christopherchudzicki
7778
- ChristophP

docs/start/data/installation.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ npm i react-router
2727

2828
Create a router and pass it to `RouterProvider`:
2929

30-
```tsx lines=[1-4,9-14,19]
31-
import {
32-
createBrowserRouter,
33-
RouterProvider,
34-
} from "react-router";
35-
30+
```tsx lines=[3-4,9-14,19]
3631
import React from "react";
3732
import ReactDOM from "react-dom/client";
33+
import { createBrowserRouter } from "react-router";
34+
import { RouterProvider } from 'react-router/dom';
3835

3936
const router = createBrowserRouter([
4037
{

0 commit comments

Comments
 (0)