Skip to content

Commit

Permalink
Handle no match route
Browse files Browse the repository at this point in the history
  • Loading branch information
Frodigo committed Dec 23, 2021
1 parent 50954ad commit 0f3e658
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ ReactDOM.render(
<Route path=":addressId" element={<AddressDetails />} />
</Route>
</Route>
<Route
path="*"
element={
<main>
<p style={{padding: '30px', textAlign: 'center'}}>There's nothing here!</p>
</main>
}
/>
</Routes>
</BrowserRouter>,
document.getElementById('root')
Expand Down

0 comments on commit 0f3e658

Please sign in to comment.