Skip to content

Commit e85fd9d

Browse files
committed
update react css scoping comparison to mention css modules
1 parent b23c328 commit e85fd9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/comparison.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ It doesn't end there though. By embracing HTML rather than trying to reinvent it
109109

110110
#### Component-Scoped CSS
111111

112-
Unless you're OK spreading components out over multiple files, there simply isn't a good option for scoping CSS in React. Very basic CSS works fine, but common features such as hover states, media queries, and pseudo-selectors all either require heavy dependencies to reinvent what CSS already does - or they simply don't work. And no matter what you end up using in the end, it'll have involved a lot of research before you can even get a simple hover state to work.
112+
Unless you're OK spreading components out over multiple files (for example with [CSS Modules](https://github.com/gajus/react-css-modules)), it's difficult to find a good solution for scoping CSS in React. Very basic CSS works fine, but common features such as hover states, media queries, and pseudo-selectors all either require heavy dependencies to reinvent what CSS already does - or they simply don't work. And no matter what you end up using in the end, it'll have involved a lot of research before you can even get a simple hover state to work.
113113

114114
Vue on the other hand, gives you full access to CSS within [single-file components](single-file-components.html):
115115

0 commit comments

Comments
 (0)