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
Copy file name to clipboardExpand all lines: packages/react-router-website/modules/api/Installation.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ import {
19
19
Route,
20
20
Link
21
21
// etc.
22
-
} from'reat-router-dom'
22
+
} from'react-router-dom'
23
23
```
24
24
25
25
If you're going for a really minimal bundle sizes on the web you can import modules directly. Theoretically a tree-shaking bundler like Webpack makes this unnecessary but we haven't tested it yet. We welcome you to!
@@ -68,7 +68,7 @@ import {
68
68
MemoryRouterasRouter,
69
69
Route
70
70
// etc.
71
-
} from'reat-router'
71
+
} from'react-router'
72
72
```
73
73
74
74
You can use React Router's navigation anywhere you run React, the navigation state is kept in a memory router. You can look at the implementation of NativeRouter to get an idea on how to integrate.
0 commit comments