Skip to content

Instantly share code, notes, and snippets.

@threepointone
Created April 9, 2017 13:01
Show Gist options
  • Save threepointone/2b618f75c14e9f6edb1bbae57fd812c1 to your computer and use it in GitHub Desktop.
Save threepointone/2b618f75c14e9f6edb1bbae57fd812c1 to your computer and use it in GitHub Desktop.
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