I have an /app/books/
page with all the books, /app/books/[name]
with the selected book and /app/books/[name]/edit
is a page for editing name
book. How in page.tsx
inside edit
directory can I get the name
of the book? Currently I think about using usePathname()
and split it by I hope there is more nextjs
type solution
↧
NextJS how to get [name] from path /app/books/[name]/edit
↧