Question · JavaScript and React course · Module 7: Styling and Animations
Global Styles in CSS Modules
How do you define a global style (without class name hashing) in CSS Modules?
Answer options
- By adding a 'global-' prefix to the class name
- By using :global(.className) in the .module.css file
- By importing the file as regular CSS without the .module extension
- By using !important on all properties
You can check the correct answer by solving this task in the CodeWorlds game.