Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakkritGit committed Nov 8, 2024
1 parent c56af7c commit 0bd2a38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ const App = () => {
const { theme } = useTheme() // destructure theme from useTheme hook

return (
// wrap Children or jsx element with ThemeProvider
// wrap Component with ThemeProvider
// use theme prop set theme with theme.mode
<ThemeProvider theme={{ mode: theme.mode }}>
{Children}
{Component}
</ThemeProvider>
)
}
Expand Down

0 comments on commit 0bd2a38

Please sign in to comment.