-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathindex.js
More file actions
37 lines (33 loc) · 797 Bytes
/
index.js
File metadata and controls
37 lines (33 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import { createRoot } from 'react-dom/client';
import App from './App';
import Contributors from './pages/Contributors';
import LocationContributorsMap from './pages/LocationContributorsMap';
import "./index.css"
import "./fonts/Chalk/Chalk-3.ttf";
import "./i18nextConfig.js";
import {
createBrowserRouter,
RouterProvider,
} from "react-router-dom";
const container = document.getElementById("root");
const root = createRoot(container);
const router = createBrowserRouter([
{
path: "/",
element: <App />,
},
{
path: "/Contributors",
element: <Contributors/>,
},
{
path: "/contributors-map",
element: <LocationContributorsMap/>,
},
]);
root.render(
<React.StrictMode>
<RouterProvider router={router} />
</React.StrictMode>
);