Chap05 -> Using route parameters -> Adding the question page route

Chap05
Jason Zhu 2022-03-29 16:25:56 +11:00
parent 61660bf83d
commit 4f9e43b95e
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import { AskPage } from './AskPage';
import { SearchPage } from './SearchPage';
import { SignInPage } from './SignInPage';
import { NotFoundPage } from './NotFoundPage';
import { QuestionPage } from './QuestionPage';
function App() {
return (
@ -28,6 +29,7 @@ function App() {
<Route path="search" element={<SearchPage />} />
<Route path="ask" element={<AskPage />} />
<Route path="signin" element={<SignInPage />} />
<Route path="questions/:questionId" element={<QuestionPage />} />
<Route path="*" element={<NotFoundPage />} />
</Routes>
</div>