$ npm install gatsby-plugin-styled-components
A Gatsby plugin for styled-components with built-in server-side rendering support.
yarn add gatsby-plugin-styled-components styled-components --save
Edit gatsby-config.js
plugins: [`gatsby-plugin-styled-components`];
styled-components
is moved to a peer dependency. Installing the package
alongside gatsby-plugin-styled-components
is now required. Use yarn add styled-components --save
© 2010 - cnpmjs.org x YWFE | Home | YWFE