Answers for "how to get param in react router dom on class component"

4

react get route params

const Child = ({ match }) => (
  <div>
    <h3>ID: {match.params.id}</h3>
  </div>
)
Posted by: Guest on December-12-2019
0

react get url params in class component

this.props.match.params.redirectParam
Posted by: Guest on May-31-2021

Code answers related to "how to get param in react router dom on class component"

Code answers related to "Javascript"

Browse Popular Code Answers by Language