DEV Community

Discussion on: Next.js E-Commerce Tutorial: SPA Example

Collapse
 
pierreguillaumelaurin profile image
Pierre-Guillaume Laurin

Hi Usman,

Depending on your use case, you could use hooks in your custom App component and then pass them to your header, or shallow routing to change your route's query parameter and then, here also, pass them to your header.

Let me know how it goes!