Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
subho004 committed Jan 7, 2024
1 parent 72c3b8d commit 363f1ee
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from "react-dom/client";
import App from "./App.jsx";
import "./index.css";
import { RouterProvider, createBrowserRouter } from "react-router-dom";
Expand All @@ -9,7 +9,6 @@ import Team from "pages/Team/Team.jsx";
import MainLayout from "components/Layout/MainLayout.jsx";
import Coc from "pages/Coc/Coc.jsx";


const routes = [
{
path: "/",
Expand All @@ -25,8 +24,8 @@ const routes = [
},
{
path: "/coc",
element:<Coc/>
}
element: <Coc />,
},
],
},
{
Expand All @@ -36,12 +35,11 @@ const routes = [
];

const router = createBrowserRouter(routes);
//error in this file
ReactDOM.render(

createRoot(document.getElementById("root")).render(
<React.StrictMode>
<App>
<RouterProvider router={router} />
</App>
</React.StrictMode>,
document.getElementById("root")
</React.StrictMode>
);

0 comments on commit 363f1ee

Please sign in to comment.