Skip to content

Commit

Permalink
added quiz page routing
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-amy committed Jul 31, 2024
1 parent 0722e84 commit 7e3db76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import {BrowserRouter as Router, Routes, Route} from 'react-router-dom';
import './App.scss';
import Home from './Home/Home';
import { Quiz } from './Quiz/Quiz';

function App() {
return (
Expand All @@ -11,6 +12,8 @@ function App() {
<Routes>
<Route path='/'
element={<Home/>}/>
<Route path='/quiz'
element={<Quiz/>}/>
</Routes>
</Router>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/Quiz/Quiz.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export function Quiz () {
return (
<>
</>
)
}

0 comments on commit 7e3db76

Please sign in to comment.