Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

NextJS how to get [name] from path /app/books/[name]/edit

$
0
0

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


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>