Skip to content

Commit 43dfc48

Browse files
committed
Add updating instructions
Fixes #119
1 parent 3d08d5b commit 43dfc48

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

template/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
33

44
## Table of Contents
55

6+
- [Updating to New Releases](#updating-to-new-releases)
67
- [Sending Feedback](#sending-feedback)
78
- [Folder Structure](#folder-structure)
89
- [Available Scripts](#available-scripts)
@@ -21,6 +22,23 @@ You can find the most recent version of this guide [here](https://github.com/fac
2122
- [Deploying](#deploying)
2223
- [Something Missing?](#something-missing)
2324

25+
## Updating to New Releases
26+
27+
Create React App is divided into two packages:
28+
29+
* `create-react-app` is a global command-line utility that you use to create new projects.
30+
* `react-scripts` is a development dependency in the generated projects (including this one).
31+
32+
You almost never need to update `create-react-app` itself: it’s delegates all the setup to `react-scripts`.
33+
34+
When you run `create-react-app`, it always creates the project with the latest version of `react-scripts` so you’ll get all the new features and improvements in newly created apps automatically.
35+
36+
To update an existing project to a new version of `react-scripts`, [open the changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md), find the version you’re currently on (check `package.json` in this folder if you’re not sure), and apply the migration instructions for the newer versions.
37+
38+
In most cases bumping the `react-scripts` version in `package.json` and running `npm install` in this folder should be enough, but it’s good to consult the [changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md) for potential breaking changes.
39+
40+
We commit to keeping the breaking changes minimal so you can upgrade `react-scripts` painlessly.
41+
2442
## Sending Feedback
2543

2644
We are always open to [your feedback](https://github.com/facebookincubator/create-react-app/issues).

0 commit comments

Comments
 (0)