Skip to content

Latest commit

 

History

History
 
 

react-static-plugin-jss

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

react-static-plugin-jss

A React-Static plugin that adds CSS-in-JS/SSR support for jss

Installation

  • Install this plugin and peer dependencies:
$ yarn add react-static-plugin-jss react-jss
  • Add the plugin to your static.config.js:
export default {
  plugins: ['react-static-plugin-jss'],
}
  • Configure it with options:
export default {
  plugins: [
    [
      'react-static-plugin-jss',
      {
        providerProps: {
          // These props will be passed to the underlying `JssProvider` component instance
        }
      }
    ]
  ],
}