-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
38 lines (31 loc) · 762 Bytes
/
App.js
File metadata and controls
38 lines (31 loc) · 762 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
38
import "./App.css";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { Toaster } from 'react-hot-toast';
import Home from './pages/Home';
import EditorPage from './pages/EditorPage';
function App() {
return (
<>
<div>
<Toaster
position="top-right"
toastOption={{
success: {
theme: {
primary:'#4aed88',
},
},
}}
>
</Toaster>
</div>
<BrowserRouter>
<Routes>
<Route path="/" element={<Home/>}></Route>
<Route path="/editor/:roomId" element={<EditorPage/>}></Route>
</Routes>
</BrowserRouter>
</>
);
}
export default App;