Coding task · JavaScript and React course · Module 6: React Router

Practice: Routing exercise

Create a 404 error handling system and navigation to non-existent pages. Use Route path='*' to catch unknown paths and display an error message with a return link.

Task

Implement 404 error handling with Route path='*' and a NotFound component. Add navigation with links to existing and non-existent pages to test the error handling.