Skip to content

Instantly share code, notes, and snippets.

@Sashkan
Created September 20, 2019 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sashkan/07ca3133dbe89042c30a64a40dd04361 to your computer and use it in GitHub Desktop.
Save Sashkan/07ca3133dbe89042c30a64a40dd04361 to your computer and use it in GitHub Desktop.
How to wrap your App in a ThemeProvider
import { ThemeProvider } from 'styled-components'
export default function App() {
return (
<ThemeProvider theme={{ mode: 'light' }}>
<Wrapper>
Hello World
</Wrapper>
</ThemeProvider>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment