-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
44 lines (42 loc) · 1.92 KB
/
index.js
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
38
39
40
41
42
43
44
import React, { StrictMode } from "react";
import Dom from "react-dom/client";
import Main from "./src/components/main/main";
import Header from "./src/components/header/header";
import CreateReactApp from "./src/components/blog-entries/create-react-app/create-react-app";
import HowICreatedTheDarkmodeToggle from "./src/components/blog-entries/darkmode/HowICreatedTheDarkmodeToggle";
import About from "./src/components/about/about";
import EasyUnderline from "./src/components/blog-entries/easy-underline/easy-underline";
import { HashRouter, Routes, Route } from "react-router-dom";
import { HelmetProvider } from "react-helmet-async";
import UsingCookies from "./src/components/blog-entries/using-cookies/using-cookies";
import FilterFunction from "./src/components/blog-entries/filter-function/filter-function";
import CustomEvents from "./src/components/blog-entries/custom-events/custom-events";
import Wrapper from "./src/components/main/wrapper";
import Footer from "./src/components/footer/footer";
const root = document.getElementById("root");
const rootObject = Dom.createRoot(root);
rootObject.render(
<StrictMode>
<HelmetProvider>
<Header />
<Wrapper>
<HashRouter>
<Routes>
<Route path="/" element={<Main />} />
<Route path="/about" element={<About />} />
<Route path="/create-react-app" element={<CreateReactApp />} />
<Route
path="/how-I-managed-darkmode"
element={<HowICreatedTheDarkmodeToggle />}
/>
<Route path="/easy-underline" element={<EasyUnderline />} />
<Route path="/using-cookies" element={<UsingCookies />} />
<Route path="/filter-function" element={<FilterFunction />} />
<Route path="/custom-events" element={<CustomEvents />} />
</Routes>
</HashRouter>
</Wrapper>
<Footer name={"footer"} />
</HelmetProvider>
</StrictMode>
);