I am using InertiaJs library to create links as in the following:
<InertiaLink href={`/item/`+ itemId}>Go to the page</InertiaLink>
Clicking on this, the link will look like this: /item/156654
Question: How to get the itemId
(156654,54654654, ... ) from the link above using Inertia?
I know that in React there is a function let history = useHistory();
, but this approach doesn't work for me. What alternative exists?