styled comonents plugin gatsby code example
Example: gatsby-plugin-styled-components
npm install --save gatsby-plugin-styled-components styled-components babel-plugin-styled-components
# yarn
yarn add gatsby-plugin-styled-components styled-components babel-plugin-styled-components
# Edit gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-styled-components`,
options: {
// Add any options here
},
},
],
}