From 0a1df193e9731cd39a882d3964320d84238db028 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sat, 24 Sep 2016 12:42:45 +0100 Subject: [PATCH] Include some advice on using styles --- packages/react-scripts/template/src/App.css | 10 ++++++++++ packages/react-scripts/template/src/index.css | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/packages/react-scripts/template/src/App.css b/packages/react-scripts/template/src/App.css index 15adfdc710c..796cf766cfa 100644 --- a/packages/react-scripts/template/src/App.css +++ b/packages/react-scripts/template/src/App.css @@ -1,3 +1,13 @@ +/** + * This is a good place to put styles related to the component. + * We recommend that, when possible, a component CSS file only includes styles + * that are used by that specific component. This is why all class names start + * with "App" in this example. Instead of defining nested selectors for child + * components, we recommend passing all relevant information as props (such as + *