DEV Community

Discussion on: Classical CSS vs CSS in JavaScript

 
korbraan profile image
Cédric Rémond

Not really, CSS in JS is a community addition to react. By default there is only raw unscoped CSS if I'm not missing anything.

Thread Thread
 
supportic profile image
Supportic

You can configure webpack to handle [.regex].css files as scoped.
In Create-React-App it's default if you name it .module.css that it's scoped.