Chap05 -> Using route parameters -> Adding the question page route
parent
379feb7e99
commit
b18e0588b5
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue