diff --git a/package-lock.json b/package-lock.json index b53b07e..55b84bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,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", @@ -2813,6 +2814,12 @@ "dev": true, "license": "MIT" }, + "node_modules/hamt_plus": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hamt_plus/-/hamt_plus-1.0.2.tgz", + "integrity": "sha512-t2JXKaehnMb9paaYA7J0BX8QQAY8lwfQ9Gjf4pg/mk4krt+cmwmU652HOoWonf+7+EQV97ARPMhhVgU1ra2GhA==", + "license": "MIT" + }, "node_modules/has-bigints": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", @@ -4611,6 +4618,26 @@ "node": ">=8.10.0" } }, + "node_modules/recoil": { + "version": "0.7.7", + "resolved": "https://registry.npmjs.org/recoil/-/recoil-0.7.7.tgz", + "integrity": "sha512-8Og5KPQW9LwC577Vc7Ug2P0vQshkv1y3zG3tSSkWMqkWSwHmE+by06L8JtnGocjW6gcCvfwB3YtrJG6/tWivNQ==", + "license": "MIT", + "dependencies": { + "hamt_plus": "1.0.2" + }, + "peerDependencies": { + "react": ">=16.13.1" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } + } + }, "node_modules/reflect.getprototypeof": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz", diff --git a/package.json b/package.json index 62e0c5c..7ae51b3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pages/_app.tsx b/pages/_app.tsx index a7a790f..4cc983f 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -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 ; + return ( + + + + ); } +