How can i pass Data from Main Component to child component based on the record Id. I have a index.js
and detail.js
pages. In the index page i have a link as <Link to={{ pathname:
/cards/${results.id}, state: results }} className={
card-wrapper restore-${results.id}}> {results.first_name} </Link>
when i click on the link i want to send the data associated to that record /Id value of the link to the detail page and display.
↧
ReactJs Pass data between multiple components using Id field
↧