-1
How to pass a parameter using Link?
In case I want to pass inside the Link the ID of my product to recover this value in my other component.
But in the to=""
i can’t pass the value in JSX.
In case I wanted it to stay that way:
<Link className="btn btn-warning" to="/editalivro/:{lista.id}">Editar</Link>
I tried using crase, but it does not work to
only accepted "".
How can I pass this value via param?