craco plugin for styled-jsx
npm install craco-styled-jsxcraco Installation Instructions to install the craco package, create a craco.config.js file.Then install craco-styled-jsx:
``bash
$ yarn add craco-styled-jsx
$ npm i -S craco-styled-jsx
`
Here is a complete craco.config.js configuration file that adds styled-jsx to create-react-app:
`js``
module.exports = {
plugins: [
{
plugin: require('craco-styled-jsx'),
options: {
sass: true, // Required node-sass to enable this option
cssFileSupport: true, // Allow to write css in a standalone file
cssFileTest: /\.styled\.(s)css$/,
}
},
],
}