Put in order · JavaScript and React course · Module 7: Styling and Animations

Basics: Advantages of CSS-in-JS

Order styling methods from weakest to strongest coupling with the component:

Items to put in order

  • CSS Modules - local class names
  • Styled-components - styles in the component definition
  • Inline styles - styles directly on the JSX element
  • Global CSS stylesheets - no coupling with the component

You can check the correct answer by solving this task in the CodeWorlds game.