Created
November 18, 2016 08:19
-
-
Save egoist/4400b9a0e99900a54e7a62eeedc92f9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// component oriented css | |
import {css} from 'cocss' | |
import cssDOM from 'cocss/dom' | |
const style = cssDOM.renderToString({ | |
color: 'red', | |
backgroundColor: 'cyan' | |
}) | |
// style: | |
// { | |
// color: red; | |
// background-color: cyan | |
// } | |
cssDOM.insertString(style) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment