Last updated 6 years ago
Clone this repository:
git clone https://github.com/traveloka/soya-next.git cd soya-next/examples/css-modules
Then, install and run it:
npm install npm start
Open in your browser.
This example uses to support CSS Modules.
By default all of your CSS files are scoped globally. To make them scoped locally (CSS Modules), you need to suffix them with .mod.css or .module.css.
.mod.css
.module.css