Join Shaun Wassell for an in-depth discussion in this video Route parameters in Express, part of React: Creating and Hosting a Full-Stack Site.
- [Speaker] So we've seen how to use post requests … to carry extra information in the form of a JSON object, … along with the request that we send to our server. … This is generally the best way to add information … to our requests, … but there are several other ways to do so as well. … Before we move on to implementing things like … up-voting or comments for our blog site, … we're going to take a look at a concept we learned … when implementing the articles pages for our front end. … Recall that for each of our article pages, … we simply use the same component … but we load it in different data … depending on the page's name property up in the URL. … Recall that the way we did this was by … defining our route with this colon name property here, … which meant that the value of this portion of the URL … got passed to our component when it was rendered. … And this allowed us to use the article's name … to load the correct article. … Using pieces of the URL in this way is called URL parameters …
- 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.