Join Shaun Wassell for an in-depth discussion in this video URL parameters with react-router, part of React: Creating and Hosting a Full-Stack Site.
working as expected with React Router, … The interesting part about this page is that … it should show our article about learning React. … We're going to use name for our URL parameter. … in this case articlePage, … that tells our component … the value of the section of our URL. … In other words, the string that occupies this spot … in the URL in the user's browser. … So for example if we navigate to article/learn-react … inside our component? … Now this match prop contains some useful information, … And then we're going to pull our URL parameter, name, … And that'll look like this. … in our heading. … we'll say learn-react, … we see that heading correctly displays the string … that we have in the part of the URL. … and can make changes to itself accordingly. … In order to see the real power of this setup, … we need some content. … in the exercise files, … so I'm going to add that in right here. … which represent articles, … In reality we might choose to represent our article data … in many other forms, …
- Creating the app component
- Using React-Router links
- Setting up an Express server
- Route parameters in Express
- Adding the comments functionality
- Installing and adding MongoDB to your project
- Rewriting the endpoints
- Adding React hooks
- Adding buttons and forms
- Pushing code to GitHub
- Running a full-stack app on AWS
Skill Level Intermediate
1. Creating a React Front End
2. Creating a Node Back End
3. Setting Up MongoDB
4. Connecting the Front and Back Ends
5. Hosting the Site
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.