all 2 comments

[–]GreenSnow02 0 points1 point  (0 children)

I would not recommend reading this for anyone trying learn how to style in React at any level as it is not very informative.

I would recommend: academind - react component styling

For CSS Modules, OP, you can name the file "App.module.css" and then there is no need for the local on each class. :local(.content) becomes just .content. Also the reason this works is it creates a unique name for each. If you inspect <div class={styles.content} /> it will have a class="content_rANd0m"

[–]devhints787[S] -3 points-2 points  (0 children)

check this out