Compiled
A familiar and performant compile time CSS-in-JS library for React.
Usage
Extract styles
Turn on extraction and all components styled in your app and sourced through NPM will have their runtime stripped and styles extracted to an atomic style sheet.
Installation
Install the React package.
Then configure your bundler of choice or use Babel directly.
Webpack
Install the Webpack loader.
Parcel
Note
Parcel v2 is currently in pre-release which makes this transformer experimental, it may break when updating Parcel. Use with caution.
Install the Parcel v2 transformer.
Babel
Install the Babel plugin.
npm install @compiled/babel-plugin --save-dev