in your dashboard layout, how do you highlight the current page (products and then customers in your demo)? since usePathName is client side only, do you use headers?
If you are talking about the “All Products” in the breadcrumbs, that just looks like it’s hardcoded. However, you can mix server and client components. So if you have a left hand nav, that would just be a client component.
Correct! Yeah, you would likely use a client component here. Going to post a follow up video here in a few days that talks about the active navigation pattern, which is similar to this.
Wow always your contents cool and helpful thanks. Please a lot clone coding course
in your dashboard layout, how do you highlight the current page (products and then customers in your demo)? since usePathName is client side only, do you use headers?
If you are talking about the “All Products” in the breadcrumbs, that just looks like it’s hardcoded. However, you can mix server and client components. So if you have a left hand nav, that would just be a client component.
Correct! Yeah, you would likely use a client component here. Going to post a follow up video here in a few days that talks about the active navigation pattern, which is similar to this.
post the code?🥺
nvm found it on vercel! Can you do a dynamic dropdown video? =D