Skip to Content
React 16 Tooling
book

React 16 Tooling

by Adam Boduch, Christopher Pitt
April 2018
Intermediate to advanced content levelIntermediate to advanced
298 pages
6h 34m
English
Packt Publishing
Content preview from React 16 Tooling

Automatic dependency handling

Let's take a look at the dependencies that were installed as part of the bootstrapping process. You can list your projects packages by running npm ls --depth=0. The --depth=0 option means that you only want to see the top-level dependencies:

├── react@16.0.0 
├── react-dom@16.0.0 
└── react-scripts@1.0.14 

There isn't much here, just the two core React libraries that you need, and something called react-scripts. This latter package contains the scripts that you'll want to run with this project such as starting the development server and making a production build.

Next, let's look at the package.json file that was created by Create React App:

{ "name": "my-react-app", "version": "0.1.0", "private": true, "dependencies": ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro React 16

Pro React 16

Adam Freeman

Publisher Resources

ISBN: 9781788835015Supplemental Content