Skip to content

Instantly share code, notes, and snippets.

@eric-burel
Created April 14, 2018 09:44
Show Gist options
  • Save eric-burel/a1cd64fa8952abf2d91f3336b91311d3 to your computer and use it in GitHub Desktop.
Save eric-burel/a1cd64fa8952abf2d91f3336b91311d3 to your computer and use it in GitHub Desktop.
geeglee-react-style-wrapper
const StyledWrapper = styled.div`
.foo-component{
background-color: red;
.foo-component__item{
background-color: blue;
}
}
`
<StyleWrapper>
<ul className="foo-component">
<li className="foo-component__item">Hello</li>
</ul>
</StyleWrapper>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment