How to access path params from inside child or grand child which in separate file?
I can use
useParams
here blog.$id.tsx
to access the path param but I can't get it from inside BlogPage
I can definitely pass as props but I also need that down the component tree. In react router I can use const { page } = useParams()
and get access anywhere.1 Reply
exotic-emerald•8mo ago
useParams({ from: "/blog/$id" })