Skip to content

Commit

Permalink
wrap with RecoilRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 18, 2024
1 parent 457d2ba commit ff17659
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
29 changes: 28 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"next": "14.2.4",
"nodemon": "^3.1.3",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"recoil": "^0.7.7"
},
"devDependencies": {
"@types/express": "^4.17.21",
Expand Down
8 changes: 7 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import "@/styles/globals.css";
import type { AppProps } from "next/app";
import { RecoilRoot } from "recoil";

export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
return (
<RecoilRoot>
<Component {...pageProps} />
</RecoilRoot>
);
}

0 comments on commit ff17659

Please sign in to comment.