Loading tutorials
.module.css files, as Vite, Next.js and Create React App do by default.2 min read.module.css file and the browser.2 min read.module.css file and apply a class with styles.name. It covers how your class names in CSS become property names on the styles object, and which naming style makes that object easiest to use.2 min read.module.css file and applied a single class through the styles object. Here you will learn how to put more than one class on the same element.2 min read.module.css file and applied a class through the styles object. Here you will switch classes based on props to build component variants.2 min read.module.css file and read styles.button in a component. It also assumes you know how the cascade orders rules. Here you will learn how composes shares declarations between classes.2 min read.module.css file, apply classes through the styles object, and read basic selectors. It builds on how CSS Modules generate unique class names.2 min read.module.css file into a component. Class names in a CSS Module are fixed at build time. Some values only exist at runtime, such as a progress percentage or a color from user data. Th2 min read.module.css file, and have used a bundler such as Vite, webpack or Next.js. CSS Modules are not a React feature. The build tool does the work, so your project needs a tool that understands .module.css files.2 min read.module.css file, and run a bundler such as Vite, webpack or Next.js. Without extra setup, TypeScript reports an error on every CSS Module import. Here you will see why that happens, how to fix it, and what the fix does no3 min read.module.css file is imported. Jest runs in Node. Node cannot parse CSS, so a test that imports a component with a CSS Module fails unless you tell Jest what to do with that file.2 min read.module.css file and applied classes through the styles object. Here you will meet the mistakes that show up most often and a layou2 min read