Matching a non-existing/404 route in Remix

How to define a 404 page in Remix


The route directory of Remix is the home for all of the navigation paths, or they are the individual pages.

So how should I catch a route when someone hit non existing page? A default route will fire automatically, but sometimes we need to create one. How?

Remix allow us to define a $.jsx route and export a React component which will catch all routes. So, try to create one now. See the result.

Author: Manoj

Developer and a self-learner, love to work with Reactjs, Angular, Node, Python and C#.Net

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.