We prefer to use Next.js Link component for functionality as it supports pre-fetching and maintains scrolls after navigation. However, to be consistent with Fluent UI principles, we need to use its Link component to display it on the UI.
Create a custom component CustomLink which abstracts over this nesting. It should take a child JSX component as prop and nest it inside the NextLink component.
We prefer to use Next.js Link component for functionality as it supports pre-fetching and maintains scrolls after navigation. However, to be consistent with Fluent UI principles, we need to use its Link component to display it on the UI.
Currently it has used as shown here: https://github.com/ai-economy-simulator/ecosim-client/blob/a0fdcca428ee1873a5014a46d3cc82712388b52e/src/app/components/footer.tsx#L18-L20
Create a custom component CustomLink which abstracts over this nesting. It should take a child JSX component as prop and nest it inside the NextLink component.
https://github.com/ai-economy-simulator/ecosim-client/blob/a0fdcca428ee1873a5014a46d3cc82712388b52e/src/app/components/link.tsx#L4