What is the main advantage of "CSS Modules" over regular CSS when working in large teams?
- Improved performance due to smaller file sizes.
- Scoped styles that prevent naming conflicts.
- Built-in support for animations and transitions.
- Greater compatibility with legacy browsers.
The primary advantage of "CSS Modules" over regular CSS in large teams is scoped styles. CSS Modules ensure that class names are locally scoped to prevent naming conflicts, making it easier to work on individual components without affecting others. While the other options may have benefits, they are not the main advantage of CSS Modules in the context of large team collaboration.
Loading...
Related Quiz
- Which of the following is NOT a valid reason to choose class components over functional components?
- In JSX, instead of the for attribute, which attribute should be used for associating a label with an input element?
- For debugging purposes in Redux, the tool that allows developers to track the state changes and actions over time is called ________.
- How do you conditionally render components?
- To ensure specificity in CSS Modules without using deep selectors, one could use the :global ______.