From the course: React: Creating and Hosting a Full-Stack Site

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Route parameters in Express

Route parameters in Express

- [Instructor] All right, at this point, we've seen how to use post requests to carry extra information in the form of a JSON object, along with the requests that we send to our server. Now, this is generally the best way to add more complex information to our requests, but there are actually several other ways to do so. So, before we move on to implementing things like Upvoting or comments for our blog site, let's take a sort of backward look at a concept that we learned when implementing the article pages for our front end. Right, you may recall that for each of our article pages, we simply used the same component and then by sending a request to /articles/ followed by the articles unique ID or name, right, such as learn-node or learn-react, we were able to populate that page component with different data. And we did this using something called route parameters or URL parameters. Now, as a matter of fact, Express also allows us to use route parameters, and this is useful in many…

Contents