Skip to content

Commit

Permalink
fix(readme): fix code example
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Jun 2, 2024
1 parent a15bcf1 commit 8377a8a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,12 @@ Set theme object externally to Component or wrap with `useMemo`.

```tsx
// Correct!
const Component: FC<{foo: string}> = ({foo}) => {

const theme = {
foo: 'bar'
}
const theme = {
foo: 'bar'
}

const Component: FC = () => {
return <RootThemeProvider theme={theme}>{/*...*/}</RootThemeProvider>
}
const Component: FC = () => {
return <RootThemeProvider theme={theme}>{/*...*/}</RootThemeProvider>
}
```

Expand Down

0 comments on commit 8377a8a

Please sign in to comment.