To ensure specificity in CSS Modules without using deep selectors, one could use the :global ______.
- :deep
- :not-global
- :global-selector
- :module
In CSS Modules, the ":global-selector" can be used to ensure specificity without resorting to deep selectors. ":global-selector" allows you to define styles that are not scoped to a specific module, making them accessible globally. The other options are not valid constructs in CSS Modules.
Loading...
Related Quiz
- Is it a must that the prop must be named as "render" for render props?
- How events are different in React?
- How do you say that props are read-only?
- What is the difference between super() and super(props) in React using ES6 classes?
- When using Immutable.js with React, why is it important to convert Immutable objects back to plain JavaScript objects before rendering?