react-styled
⚠️ Highly experimental tool for applying styles to React components.
TODO:
- Proper CSS matching
- Pass props to selector matching
- Pass state to selector matching
- Implement className generation in cases when
:before
is used - Implement
<style>
tag generation for custom classes
Usage
index.css
:
index.jsx
:
var React = ;var Styled = ; // Somehow get index.css contents, webpack for example:var styled = ; var Button = React;
How does it works
Magic.
API
Styled(css)
Returns decorator Function
for wrapping render
method of React component.
Not so much yet.
License
MIT © Vsevolod Strukchinsky