ReactJS - Episode 2 - React Router URL Params

Опубликовано: 31 Март 2026
на канале: CourseHack
168
0

Today, we are talking about URL parameters with React Router. It's an easy way to make URL Paths. 

To start off, there is this great article - URL Parameters with React Router by Tyler McGinnis. I suggest reading it.

The current version of React Router is v5. If you're using v5, then this article will probably NOT be for you. If you're using v3, then it's perfect!

There's also another stackoverflow thread with the differences between v1, v2, v3, and v4+.

Anyways, we're going to take a look at how we get a url like:
localhost:3000/events/2 with react router.

Don't forget to join the mailing list and our facebook group below if you need some programming help or some accountability partners (And access to our files used in this tutorial series)!

Accompanying medium article:   / reactjs-episode-2  

Don't forget to like, comment, and subscribe!!!

========================================================
Reference Links
========================================================
URL Parameters with React Router: https://tylermcginnis.com/react-route...

React Router: https://www.npmjs.com/package/react-r...

React Router with Optional Path Paramter: https://stackoverflow.com/questions/3...
========================================================
Connect with me!
========================================================
Linkedin:   / donaldlee50  
Instagram:   / donlee50  
Twitter:   / donaldlee50  
Youtube:    / coursehack  
Mailing List: http://bit.ly/coursehack-mailing-list
Coursehack's Facebook Group: bit.ly/join-coursehack-facebook-group

========================================================
Ran into this Issue with my Dancingnomads App, check it out!
========================================================
Web: https://dancingnomads.com
iOS App (help give it 5 stars?): http://bit.ly/dancingnomads-for-ios
Android App (help give it 5 stars?): http://bit.ly/dancingnomads-for-android

Don't forget to like, comment, and subscribe!