Question · JavaScript and React course · Module 7: Styling and Animations

CSS Modules in React

What is the main advantage of CSS Modules in React?

Answer options

  • Automatically generated unique class names that prevent style collisions between components
  • Ability to use JavaScript variables directly in CSS files
  • Faster style loading thanks to build-time compression
  • Automatic addition of responsive breakpoints to every selector

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