Unverified Commit 4f09f95d authored by Mathis Møller's avatar Mathis Møller Committed by GitHub

examples(with-jotai): Update example (#38398)



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)
parent b421fa27
......@@ -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"
......
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>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment