-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
42 lines (39 loc) · 1.62 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
import React from 'react';
import { createRoot } from "react-dom/client";
import 'mdb-react-ui-kit/dist/css/mdb.min.css';
import reportWebVitals from './reportWebVitals';
import Basic from './basic/Basic';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import App from './App';
import MultipleChoice from './multipleChoice/MultipleChoice';
import Card from './card/Card';
import CardWithFeedback from './cardWithFeedback/CardWithFeedback';
import Modal from './modal/Modal';
import Rating from './rating/Rating';
import Scale from './scale/Scale';
import Ranking from './ranking/Ranking';
import Range from './range/Range';
const container = document.getElementById("root");
const root = createRoot(container);
root.render(
<React.StrictMode>
<BrowserRouter>
<Routes>
<Route path="/" element={<App />} />
<Route path="/basic" element={<Basic />} />
<Route path="/multiple-choice" element={<MultipleChoice />} />
<Route path="/card" element={<Card />} />
<Route path="/card-with-feedback" element={<CardWithFeedback />} />
<Route path="/modal" element={<Modal />} />
<Route path="/rating" element={<Rating />} />
<Route path="/scale" element={<Scale />} />
<Route path="/ranking" element={<Ranking />} />
<Route path="/range" element={<Range />} />
</Routes>
</BrowserRouter>
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();