From ab3913cc113b2392fa0329f699571bae3c213308 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 12 Dec 2016 14:21:46 +0000 Subject: [PATCH] Clarify when to use the public folder --- packages/react-scripts/template/README.md | 26 +++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 4cbf350e49f..4445e9b903a 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -22,6 +22,9 @@ You can find the most recent version of this guide [here](https://github.com/fac - [Post-Processing CSS](#post-processing-css) - [Adding Images and Fonts](#adding-images-and-fonts) - [Using the `public` Folder](#using-the-public-folder) + - [Changing the HTML](#changing-the-html) + - [Adding Assets Outside of the Module System](#adding-assets-outside-of-the-module-system) + - [When to Use the `public` Folder](#when-to-use-the-public-folder) - [Using Global Variables](#using-global-variables) - [Adding Bootstrap](#adding-bootstrap) - [Adding Flow](#adding-flow) @@ -372,7 +375,18 @@ An alternative way of handling static assets is described in the next section. >Note: this feature is available with `react-scripts@0.5.0` and higher. -Normally we encourage you to `import` assets in JavaScript files as described above. This mechanism provides a number of benefits: +### Changing the HTML + +The `public` folder contains the HTML file so you can tweak it, for example, to [set the page title](#changing-the-page-title). +The `