Sign in
Log inSign up

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

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct