Style
Can add /style folder, css files, then import globally in gatsby-browser.js
CSS Modules
This seems different than pure React CSS modules
If you console.log the imported style, you see it just maps to globally unique name generated
src/components/container.js
src/components/container.module.css
pages/test.js
Need .module.css
suffix to tell Gatsby its a module
CSS-in-JS
https://speakerdeck.com/vjeux/react-css-in-js
Its a thing
Last updated