A CSS module is a CSS file, but with a key difference: by default, when it is imported in a component every class name and animation inside that module is scoped locally to that component. Stylesheets in large apps can get quite messy and coming up with new class names for slightly different components can get hard really quick. One feature is CSS Modules that is available in create-react-app from version 2 and later. Create-react-app offers a modern build setup that comes pre-configured with everything we need to start building our React app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |