My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to pass an HTML attribute value to the react component with react-router?

Tonny Hideyori's photo
Tonny Hideyori
·Dec 22, 2018

i have a button which contain id attribute and that button is a link to another react component but i want to carry on with the id to the next component. code:

<Link><button id={user._id>next</button></Link> any help