Wrote a post on building a reusable NavLink in Next.js, taking inspiration from React Router.
Covers:
β’ Render props for πππ°πππππ and πππΏππππππ
β’ ππππΏπππππππ() vs ππππππππππππ»ππ’πππππππππππ()
β’ Flicker-free first paint
β’ Built-in Suspense for Cache Components
aurorascharff.no/posts/buildi...
Active link styling is one of the most common things you need in a real application. Here is how to build a reusable NavLink component for a Next.js app, taking inspiration from React Router, that han...