score:0

as mentioned in the documentation you can access the state passed through a link thanks to the uselocation hook:

https://v5.reactrouter.com/web/api/location

  let { state } = uselocation();
  console.log(state.the)

Related Query

More Query from same tag