最終更新:2024-12-09 (月) 18:11:41 (40d)
useParams
Top / useParams
returns an object of key/value pairs of the dynamic params from the current URL that were matched by the <Route path>. Child routes inherit all params from their parent routes.
https://api.reactrouter.com/v7/functions/react_router.useParams.html
https://reactrouter.com/6.28.0/hooks/use-params