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: CHANGELOG-1.x.md
+3-5
Original file line number
Diff line number
Diff line change
@@ -1365,7 +1365,7 @@ or
1365
1365
yarn add --dev --exact react-scripts@1.0.2
1366
1366
```
1367
1367
1368
-
If you previously had issues with an `Invalid Host Header` error, [follow these new instructions](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#invalid-host-header-errors-after-configuring-proxy) to fix it.
1368
+
If you previously had issues with an `Invalid Host Header` error, [follow these new instructions](https://github.com/facebook/create-react-app/blob/main/packages/react-scripts/template/README.md#invalid-host-header-errors-after-configuring-proxy) to fix it.
1369
1369
1370
1370
## 1.0.1 (May 19, 2017)
1371
1371
@@ -1572,7 +1572,7 @@ If you still have the problem please file an issue.
1572
1572
1573
1573
Unhandled Promise rejections will now crash tests. You can fix them by explicitly catching the errors you don’t care about.
1574
1574
1575
-
#### How to turn my app into a [Progressive Web App](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app)?
1575
+
#### How to turn my app into a [Progressive Web App](https://github.com/facebook/create-react-app/blob/main/packages/react-scripts/template/README.md#making-a-progressive-web-app)?
1576
1576
1577
1577
After the regular update procedure above, add these line to `<head>` in `public/index.html`:
1578
1578
@@ -1588,9 +1588,7 @@ After the regular update procedure above, add these line to `<head>` in `public/
1588
1588
Add `<noscript>` to `<body>` in `public/index.html`:
1589
1589
1590
1590
```html
1591
-
<noscript>
1592
-
You need to enable JavaScript to run this app.
1593
-
</noscript>
1591
+
<noscript> You need to enable JavaScript to run this app. </noscript>
1594
1592
```
1595
1593
1596
1594
Then create a file called `public/manifest.json` that looks like this:
Copy file name to clipboardexpand all lines: CHANGELOG-3.x.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -330,7 +330,7 @@ v3.3.0 is a minor release that adds new features, including custom templates and
330
330
331
331
You can now create a new app using custom templates.
332
332
333
-
We've published our existing templates as [`cra-template`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template) and [`cra-template-typescript`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template-typescript), but we expect to see many great templates from the community over the coming weeks.
333
+
We've published our existing templates as [`cra-template`](https://github.com/facebook/create-react-app/tree/main/packages/cra-template) and [`cra-template-typescript`](https://github.com/facebook/create-react-app/tree/main/packages/cra-template-typescript), but we expect to see many great templates from the community over the coming weeks.
334
334
335
335
The below command shows how you can create a new app with `cra-template-typescript`.
This package is the heart of the project, which contains the scripts for setting up the development server, building production builds, configuring all software used, etc.<br>
89
89
All functionality must be retained (and configuration given to the user) if they choose to eject.
@@ -163,7 +163,7 @@ Make sure to test the released version! If you want to be extra careful, you can
163
163
1. Go to the `docusaurus/website` directory
164
164
2. Run `yarn build`
165
165
3. You'll need an [access token for the GitHub API](https://help.github.com/articles/creating-an-access-token-for-command-line-use/). Save it to this environment variable: `export GITHUB_AUTH="..."`
166
-
4. Run `GIT_USER=<GITHUB_USERNAME> CURRENT_BRANCH=master USE_SSH=true yarn deploy`
166
+
4. Run `GIT_USER=<GITHUB_USERNAME> CURRENT_BRANCH=main USE_SSH=true yarn deploy`
@@ -217,4 +217,4 @@ We are grateful to the authors of existing related projects for their ideas and
217
217
218
218
## License
219
219
220
-
Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/master/LICENSE). The Create React App logo is licensed under a [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).
220
+
Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/main/LICENSE). The Create React App logo is licensed under a [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).
Copy file name to clipboardexpand all lines: docusaurus/docs/adding-a-sass-stylesheet.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This will allow you to do imports like
34
34
35
35
`sass` also supports the `SASS_PATH` variable.
36
36
37
-
To use imports relative to a path you specify, you can add a [`.env` file](https://github.com/facebook/create-react-app/blob/master/docusaurus/docs/adding-custom-environment-variables.md#adding-development-environment-variables-in-env) at the project root with the path specified in the `SASS_PATH` environment variable. To specify more directories you can add them to `SASS_PATH` separated by a `:` like `path1:path2:path3`.
37
+
To use imports relative to a path you specify, you can add a [`.env` file](https://github.com/facebook/create-react-app/blob/main/docusaurus/docs/adding-custom-environment-variables.md#adding-development-environment-variables-in-env) at the project root with the path specified in the `SASS_PATH` environment variable. To specify more directories you can add them to `SASS_PATH` separated by a `:` like `path1:path2:path3`.
38
38
39
39
> **Note:** For the Windows operating system, separate your paths by semicolons.
40
40
>
@@ -65,4 +65,4 @@ To use imports relative to a path you specify, you can add a [`.env` file](https
However, you can find many great community templates by searching for ["cra-template-\*"](https://www.npmjs.com/search?q=cra-template-*) on npm.
26
26
27
27
## Building a template
28
28
29
-
If you're interested in building a custom template, first take a look at how we've built [`cra-template`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template).
29
+
If you're interested in building a custom template, first take a look at how we've built [`cra-template`](https://github.com/facebook/create-react-app/tree/main/packages/cra-template).
Copy file name to clipboardexpand all lines: docusaurus/docs/documentation-intro.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ This website is only about Create React App.
18
18
19
19
## Something Missing?
20
20
21
-
If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebook/create-react-app/issues) or [contribute some!](https://github.com/facebook/create-react-app/tree/master/docusaurus/docs)
21
+
If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebook/create-react-app/issues) or [contribute some!](https://github.com/facebook/create-react-app/tree/main/docusaurus/docs)
Copy file name to clipboardexpand all lines: docusaurus/docs/fetching-data-with-ajax-requests.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,6 @@ The global `fetch` function allows you to make AJAX requests. It takes in a URL
11
11
A Promise represents the eventual result of an asynchronous operation, you can find more information about Promises [here](https://www.promisejs.org/) and [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). Both axios and `fetch()` use Promises under the hood. You can also use the [`async / await`](https://davidwalsh.name/async-await) syntax to reduce the callback nesting.
12
12
13
13
Make sure the [`fetch()` API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) and [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) are available in your target audience's browsers.
14
-
For example, support in Internet Explorer requires a [polyfill](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md).
14
+
For example, support in Internet Explorer requires a [polyfill](https://github.com/facebook/create-react-app/blob/main/packages/react-app-polyfill/README.md).
15
15
16
16
You can learn more about making AJAX requests from React components in [the FAQ entry on the React website](https://reactjs.org/docs/faq-ajax.html).
Copy file name to clipboardexpand all lines: docusaurus/docs/running-tests.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Running Tests
5
5
6
6
> Note: this feature is available with `react-scripts@0.3.0` and higher.
7
7
8
-
> [Read the migration guide to learn how to enable it in older projects!](https://github.com/facebook/create-react-app/blob/master/CHANGELOG-0.x.md#migrating-from-023-to-030)
8
+
> [Read the migration guide to learn how to enable it in older projects!](https://github.com/facebook/create-react-app/blob/main/CHANGELOG-0.x.md#migrating-from-023-to-030)
9
9
10
10
Create React App uses [Jest](https://jestjs.io/) as its test runner. To prepare for this integration, we did a [major revamp](https://jestjs.io/blog/2016/09/01/jest-15.html) of Jest so if you heard bad things about it years ago, give it another try.
11
11
@@ -184,7 +184,7 @@ Note that tests run much slower with coverage so it is recommended to run it sep
184
184
185
185
### Configuration
186
186
187
-
The [default configuration](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/scripts/utils/createJestConfig.js) that Create React App uses for Jest can be overridden by adding any of the following supported keys to a Jest config in your package.json.
187
+
The [default configuration](https://github.com/facebook/create-react-app/blob/main/packages/react-scripts/scripts/utils/createJestConfig.js) that Create React App uses for Jest can be overridden by adding any of the following supported keys to a Jest config in your package.json.
Copy file name to clipboardexpand all lines: docusaurus/docs/supported-browsers-features.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_label: Supported Browsers and Features
6
6
7
7
## Supported Browsers
8
8
9
-
By default, the generated project supports all modern browsers. Support for Internet Explorer 9, 10, and 11 requires polyfills. For a set of polyfills to support older browsers, use [react-app-polyfill](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md).
9
+
By default, the generated project supports all modern browsers. Support for Internet Explorer 9, 10, and 11 requires polyfills. For a set of polyfills to support older browsers, use [react-app-polyfill](https://github.com/facebook/create-react-app/blob/main/packages/react-app-polyfill/README.md).
10
10
11
11
## Supported Language Features
12
12
@@ -23,9 +23,9 @@ Learn more about [different proposal stages](https://tc39.github.io/process-docu
23
23
24
24
While we recommend using experimental proposals with some caution, Facebook heavily uses these features in the product code, so we intend to provide [codemods](https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb) if any of these proposals change in the future.
25
25
26
-
Note that **this project includes no [polyfills](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md)** by default.
26
+
Note that **this project includes no [polyfills](https://github.com/facebook/create-react-app/blob/main/packages/react-app-polyfill/README.md)** by default.
27
27
28
-
If you use any other ES6+ features that need **runtime support** (such as `Array.from()` or `Symbol`), make sure you are [including the appropriate polyfills manually](https://github.com/facebook/create-react-app/blob/master/packages/react-app-polyfill/README.md), or that the browsers you are targeting already support them.
28
+
If you use any other ES6+ features that need **runtime support** (such as `Array.from()` or `Symbol`), make sure you are [including the appropriate polyfills manually](https://github.com/facebook/create-react-app/blob/main/packages/react-app-polyfill/README.md), or that the browsers you are targeting already support them.
Copy file name to clipboardexpand all lines: docusaurus/docs/updating-to-new-releases.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,14 @@ Create React App is divided into two packages:
8
8
-`create-react-app` is a global command-line utility that you use to create new projects.
9
9
-`react-scripts` is a development dependency in the generated projects (including this one).
10
10
11
-
When you run `npx create-react-app my-app` it automatically installs the latest version of Create React App.
12
-
> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, please visit [Getting Started](getting-started.md) to learn about current installation steps.
11
+
When you run `npx create-react-app my-app` it automatically installs the latest version of Create React App.
12
+
13
+
> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, please visit [Getting Started](getting-started.md) to learn about current installation steps.
13
14
14
15
Create React App 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.
15
16
16
-
To update an existing project to a new version of `react-scripts`, [open the changelog](https://github.com/facebook/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.
17
+
To update an existing project to a new version of `react-scripts`, [open the changelog](https://github.com/facebook/create-react-app/blob/main/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.
17
18
18
-
In most cases bumping the `react-scripts` version in `package.json` and running `npm install` (or `yarn install`) in this folder should be enough, but it’s good to consult the [changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md) for potential breaking changes.
19
+
In most cases bumping the `react-scripts` version in `package.json` and running `npm install` (or `yarn install`) in this folder should be enough, but it’s good to consult the [changelog](https://github.com/facebook/create-react-app/blob/main/CHANGELOG.md) for potential breaking changes.
19
20
20
21
We commit to keeping the breaking changes minimal so you can upgrade `react-scripts` painlessly.
0 commit comments