Skip to content

Files

Latest commit

 

History

History
18 lines (13 loc) · 475 Bytes

installing-a-dependency.md

File metadata and controls

18 lines (13 loc) · 475 Bytes
id title
installing-a-dependency
Installing a Dependency

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:

npm install --save react-router-dom

Alternatively you may use yarn:

yarn add react-router-dom

This works for any library, not only react-router-dom.