Using CSS Modules in React, class names are made locally scoped by default and transformed into a unique ______ during the build process.
- class
- hash
- identifier
- style
In CSS Modules, class names are indeed made locally scoped by default to avoid naming conflicts. These class names are transformed into unique hashes during the build process, ensuring that they won't clash with other styles elsewhere in the application. So, the correct answer to fill in the blank is "hash."
Loading...
Related Quiz
- How to create refs?
- For an application where state changes are frequent and involve complex logic, which state management solution might be more suitable?
- What is the primary purpose of a Service Worker in web development?
- In a large application, you notice that many components need access to user data, but only a few of them can modify it. How might HOCs help streamline this architecture?
- Which MobX utility can be used to create a custom reaction based on observable changes?