Styled JSX
Full CSS support for JSX without compromises
README
styled-jsx
Full, scoped and component-friendly CSS support for JSX (rendered on the server or the client).
Code and docs are for v3 which we highly recommend you to try. Looking for styled-jsx v2? Switch to the v2 branch.
- [optimizeForSpeed](#optimizeforspeed)
- [sourceMaps](#sourcemaps)
- [styleModule](#stylemodule)
- [vendorPrefixes](#vendorprefixes)
- Features
- [Via className toggling](#via-classname-toggling)
- [Via inline style](#via-inline-style)
- [The resolve tag](#the-resolve-tag)
- FAQ
- [Warning: unknown jsx prop on <style> tag](#warning-unknown-jsx-prop-on-style-tag)
- ESLint
- Credits
Getting started
Firstly, install the package:
- ```bash
- npm install --save styled-jsx
- ```
Next, add styled-jsx/babel to plugins in your babel configuration:
- ```json
- {
- "plugins": ["styled-jsx/babel"]
- }
- ```