curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Styling React Applications: Styled Components

Open columk1 opened this issue 9 months ago • 2 comments

Checks

Describe your suggestion

There is a paragraph about CSS-in-JS and the only library it mentions is Styled Components.

One of the most popular ones in the React ecosystem is styled-components.

Later the lesson recommends using CSS modules or one of the CSS-in-JS options (which links back to where Styled Components is mentioned).

For learning purposes throughout this course, we strongly recommend that you avoid using CSS frameworks or component libraries (using icon component libraries is fine), and instead implement your component’s styling from scratch i.e. use CSS Modules or a CSS-in-JS option.

The Styled Components library author says that it is in "maintenance mode" and that it should not be used for new projects. They also say that the ecosystem has moved on from CSS-in-JS.

Source: https://opencollective.com/styled-components/updates/thank-you

I think we should push for students to use CSS modules instead of encouraging CSS-in-JS.

Path

Node / JS

Lesson Url

https://www.theodinproject.com/lessons/node-path-react-new-styling-react-applications

(Optional) Discord Name

columk

(Optional) Additional Comments

No response

columk1 avatar Mar 28 '25 21:03 columk1

@TheOdinProject/react Can someone take a look please.

CouchofTomato avatar Mar 31 '25 12:03 CouchofTomato

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar May 01 '25 02:05 github-actions[bot]

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar Sep 03 '25 02:09 github-actions[bot]

Thanks @columk1

Acceptance criteria

  • [ ] Rephrase the last sentence of the warning note box to something like (wording is a suggestion only):

    , and instead implement your components' styling with a more vanilla approach i.e. use CSS Modules.

  • [ ] Give the warning note box a sufficiently descriptive level 4 heading (see the layout style guide for more info).

Please comment below if you'd like to be assigned to this issue. Please do not open a PR unless you have been assigned by a maintainer.

mao-sz avatar Sep 13 '25 00:09 mao-sz

I want to work on this issue.

frrst-ian avatar Sep 13 '25 12:09 frrst-ian