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: packages/react-scripts/template/README.md
+13-11
Original file line number
Diff line number
Diff line change
@@ -518,49 +518,51 @@ If you are concerned about using Webpack-specific semantics, you can put all you
518
518
<!---
519
519
## Adding a CSS Modules stylesheet
520
520
521
-
This project supports [CSS Modules](https://github.com/css-modules/css-modules) alongside regular stylesheets using the **[name].module.css** file naming convention. CSS Modules allows the scoping of CSS by automatically creating a unique classname of the format **[dir]\_\_[filename]___[classname]**.
521
+
This project supports [CSS Modules](https://github.com/css-modules/css-modules) alongside regular stylesheets using the **[name].module.css** file naming convention. CSS Modules allows the scoping of CSS by automatically creating a unique classname of the format **[filename]\_[classname]\_\_[hash]**.
522
522
523
523
An advantage of this is the ability to repeat the same classname within many CSS files without worrying about a clash.
<!-- This button has red background but not red text -->
561
+
<buttonclass="Button_error_ax7yz"></div>
560
562
```
561
563
562
564
**This is an optional feature.** Regular html stylesheets and js imported stylesheets are fully supported. CSS Modules are only added when explictly named as a css module stylesheet using the extension `.module.css`.
0 commit comments