Created
March 14, 2022 15:56
-
-
Save chunkydotdev/fea2fee20e40cc21b1db5d3dd608da5c to your computer and use it in GitHub Desktop.
Applying theme provider with styled components
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
import { ThemeProvider } from 'styled-components' | |
import { theme } from './theme.ts' | |
const App = () => { | |
return <> | |
<ThemeProvider theme={theme}> | |
<Component1 /> | |
<Component2 /> | |
<Component3 /> | |
</ThemeProvider> | |
</> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment