Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

-1

212
Views
Reactjs props.match.params.id do not work in react-router-dom 6

Goal:
After updatering react-router-dom from version 4 to 6 you should be enable to use this.props.match.params.id in the class PostItem

Problem:
After updatering the react-router-dom to 6 you are not enable to use this.props.match.params.id in the class PostItem in order to display value 11.

What part of the code needs to be changed in order to display the value of the parameter in the class PostItem?

Stackblitz:
Before
https://stackblitz.com/edit/react-routing-6-reading-url-params-8my95l?

After
https://stackblitz.com/edit/react-routing-6-reading-url-params-ezzuzf?

Thank you!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!