Put in order · Next.js course · Module 3: Styling and Visual Optimization
Steps to configure CSS Modules in Next.js
Arrange the steps for using CSS Modules in Next.js in the correct order:
Items to put in order
- Use styles.className in the className attribute of a JSX element
- Define CSS classes in the module file
- Import the module as a styles object in the component
- Create a .module.css file
You can check the correct answer by solving this task in the CodeWorlds game.