404 Pages

React Router provides us with a wrapper component called Switch that we can wrap our Routes with so that we can set a catch-all route to handle 404s that thanks to Switch will only get triggered if the routes on top of it don’t match.

How does it do this? Switch will only render the first route that matches!

Copyright 2023 © Borja Leiva

Made within London