Skip to content

Commit

Permalink
recoil ์„ธํŒ…
Browse files Browse the repository at this point in the history
  • Loading branch information
happyhyep committed Jan 12, 2024
1 parent 6a34fdf commit 6de04fa
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import "src/lang/index";
import { RecoilRoot } from "recoil";

const rootElement = document.getElementById("root");
if (!rootElement) throw new Error("Failed to find the root element");
const root = createRoot(rootElement);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
<>
<RecoilRoot>
<React.StrictMode>
<App />
</React.StrictMode>
</RecoilRoot>
</>,
);

0 comments on commit 6de04fa

Please sign in to comment.