Created
April 9, 2017 13:01
-
-
Save threepointone/2b618f75c14e9f6edb1bbae57fd812c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let rule = css({ | |
'& .Resizer': { | |
// ... | |
}, | |
'& .SplitPane': { | |
// ... | |
} | |
'& .Pane': { | |
// ... | |
} | |
}) | |
const App = () => | |
// add that rule to any parent element | |
<div className={rule}> | |
// SplitPane accepts a classname, so you could send a class here too | |
<SplitPane className={css({ backgroundColor: 'gray', '& .Resizer': {...} })}> | |
... | |
</SplitPane> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment