Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 0a1df19

Browse files
committed
Include some advice on using styles
1 parent d125074 commit 0a1df19

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

packages/react-scripts/template/src/App.css

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/**
2+
* This is a good place to put styles related to the <App /> component.
3+
* We recommend that, when possible, a component CSS file only includes styles
4+
* that are used by that specific component. This is why all class names start
5+
* with "App" in this example. Instead of defining nested selectors for child
6+
* components, we recommend passing all relevant information as props (such as
7+
* <Button color="red" size="large" />) in React. Then you can have <Button />
8+
* use its own Button.css file without coupling their styles together.
9+
*/
10+
111
.App {
212
text-align: center;
313
}

packages/react-scripts/template/src/index.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* This is a good place to put styles that apply to the whole page.
3+
* We recommend to put component-specific styles into separate files.
4+
*/
5+
16
body {
27
margin: 0;
38
padding: 0;

0 commit comments

Comments
 (0)