Skip to content

in class component "this.props.match.params" is not working in 6.0.0 react-route-dom #8404

Closed Answered by timdorr
rahulummadisetti asked this question in Q&A
Discussion options

You must be logged in to vote

This isn't a feature in v6. You need to use hooks or use a wrapper around your class components to provide the hook data to them.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by timdorr
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants