JavaScript React Router 4 Basics Navigating, Nesting and Redirecting Routes Styling Active Links

David Axelrod
David Axelrod
36,073 Points

Regex in react-router

We learn to use the exact prop to make sure our routes only hit the url when it matches exactly. I see that you can also use regex ("/" -> "^/$") which is similar to djano/express routing.

What is the best practice from SPA's using react?