Skip to content

Commit

Permalink
examples(with-jotai): Update example (#38398)
Browse files Browse the repository at this point in the history
Updates `jotai` example.

## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm lint`
- [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
  • Loading branch information
Thisen committed Jul 8, 2022
1 parent b421fa2 commit 4f09f95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/with-jotai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "next start"
},
"dependencies": {
"jotai": "1.3.0",
"jotai": "1.7.3",
"next": "latest",
"react": "17.0.2",
"react-dom": "17.0.2"
Expand Down
7 changes: 6 additions & 1 deletion examples/with-jotai/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import { Provider } from 'jotai'

export default function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
return (
<Provider>
<Component {...pageProps} />
</Provider>
)
}

0 comments on commit 4f09f95

Please sign in to comment.