Posts by Toquinhoro • 11 points
3 posts
-
1
votes1
answer12
viewsA: How to pass parameters through the Link in React?
Just add {} keys in the to and concatenate that solved. <Link className="btn btn-warning" to={"/editalivro/" + lista.id}>Editar</Link>
reactanswered Toquinhoro 11 -
-1
votes1
answer12
viewsQ: How to pass parameters through the Link in React?
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…
reactasked Toquinhoro 11 -
0
votes1
answer24
viewsQ: Request Loop in useEffect
I’m doing a post on my API and want to update my book list whenever I create a new book. My Post is working, but when I add my "list" inside the [list] in use useEffects a Loop is started and the…