Use Regular Expressions With Routes

Share this lesson with your friends:

Send tweet

Join our community on Discord:

Join Discord

Your instructor

Greg D'Angelo

Greg D'Angelo

CEO and Founder, AlterClass.io

Greg D'Angelo is the founder of AlterClass.io. Greg has spent most of his career developing large-scale web applications and now focuses on bringing his expertise online to help everyone master modern web development. He is the creator of the AlterClass React program.

This is a free preview of the React Routing module from the AlterClass React JS program

The path property of the <Route /> component can accept a string, an array of strings, or even regular expressions. So, in this lesson, you'll break down this prop and see how to create powerful rules to define the paths of your routes using regex.

Discussion

Be the first to comment!

Sign in and join the discussion

Want to stay up-to-date with modern web development?

Join 1,285+ developers who get early access to new tutorials, screencasts, articles, and more.

We care about the protection of your data. Read our Privacy Policy.

© 2022 AlterClass. All rights reserved.

Join Discord