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
The generated project includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency. You may install other dependencies (for example, React Router) with `npm`:
7
+
8
+
```sh
9
+
npm install --save react-router-dom
10
+
```
11
+
12
+
Alternatively you may use `yarn`:
13
+
14
+
```sh
15
+
yarn add react-router-dom
16
+
```
17
+
18
+
This works for any library, not just `react-router-dom`.
-[Alternatives to Ejecting](#alternatives-to-ejecting)
52
51
53
-
## Installing a Dependency
54
-
55
-
The generated project includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency. You may install other dependencies (for example, React Router) with `npm`:
56
-
57
-
```sh
58
-
npm install --save react-router-dom
59
-
```
60
-
61
-
Alternatively you may use `yarn`:
62
-
63
-
```sh
64
-
yarn add react-router-dom
65
-
```
66
-
67
-
This works for any library, not just `react-router-dom`.
68
-
69
52
## Importing a Component
70
53
71
54
This project setup supports ES6 modules thanks to Webpack.<br>
0 commit comments