Meta tags:
description= Note: this feature is available with react-scripts@2.0.0 and higher.;
Headings (most frequently used words):
css, stylesheet, button, adding, modules, module, another, js, result,
Text of the page (most frequently used words):
css (22), button (13), #stylesheet (9), adding (9), modules (9), the (8), react (7), #module (7), stylesheets (6), this (6), error (6), and (5), files (5), import (5), sass (4), copy (4), class (4), red (4), styles (4), name (4), app (4), github (3), another (3), regular (3), with (3), from (3), classname (3), create (3), learn (2), started (2), docs (2), result (2), page (2), are (2), extension (2), feature (2), background (2), clashes (2), component (2), color (2), you (2), about (2), naming (2), more (2), here (2), then (2), file (2), using (2), copyright, 2025, facebook, inc, social, contributor, covenant, twitter, discussions, stack, overflow, community, get, next, previous, last, updated, hardo, 2019, edit, fully, supported, turned, for, ending, link, optional, button_error_ax7yz, has, but, not, text, other, names, return, reference, object, render, extends, let, use, same, different, without, worrying, should, want, preprocess, make, sure, change, follows, scss, follow, installation, instructions, tip, project, supports, alongside, convention, allows, scoping, automatically, creating, unique, format, filename, hash, note, available, higher, scripts, support, advanced, usage, deployment, back, end, integration, testing, building, your, code, splitting, public, folder, loading, graphql, images, fonts, post, processing, reset, assets, development, getting, welcome, search, help, deprecated, read, skip, main, content,
Text of the page (random words):
adding a css modules stylesheet create react app skip to main content create react app is deprecated read more here create react app docs help github search k welcome getting started development styles and assets adding stylesheets adding css modules adding sass stylesheets adding css reset post processing css adding images fonts and files loading graphql files using the public folder code splitting building your app testing back end integration deployment advanced usage support on this page adding a css modules stylesheet note this feature is available with react scripts 2 0 0 and higher this project supports css modules alongside regular stylesheets using the name module css file naming convention css modules allows the scoping of css by automatically creating a unique classname of the format filename _ classname _ _ hash tip should you want to preprocess a stylesheet with sass then make sure to follow the installation instructions and then change the stylesheet file extension as follows name module scss or name module sass css modules let you use the same css class name in different files without worrying about naming clashes learn more about css modules here button module css error background color red copy another stylesheet css error color red copy button js import react component from react import styles from button module css import css modules stylesheet as styles import another stylesheet css import regular stylesheet class button extends component render reference as a js object return button classname styles error error button button copy result no clashes from other error class names this button has red background but not red text button class button_error_ax7yz error button button copy this is an optional feature regular link stylesheets and css files are fully supported css modules are turned on for files ending with the module css extension edit this page last updated on 1 4 2019 by hardo previous adding stylesheets next adding sass stylesheets button module css another stylesheet css button js result docs get started learn react community stack overflow github discussions twitter contributor covenant social github copyright 2025 facebook inc
|