The easiest solution may be to wrap your NavLink with a native html element. In your case:
<Link href="/signup" passHref>
<a>
<NavLink style={{ cursor: "pointer" }}>Signup</NavLink>
</a>
</Link>
More Related Contents:
- Window is not defined in Next.js React app
- “Cannot use import statement outside a module” error when importing react-hook-mousetrap in Next.js
- Can’t build React/Next project – found page without a React Component as default export (context api file)
- In React and Next.js constructor, I am getting “Reference Error: localstorage is not defined”
- First Load JS shared by all is rather heavy in next.js
- Error: How to serialize data from getStaticProps : Next.js
- Environment variables not working (Next.JS 9.4.4)
- Next.js context provider wrapping App component with page specific layout component giving undefined data
- I can’t reference an image in Next.js
- unable to deploy next js to azure
- How to Set port in next.js
- What is the best way to have a fallback image in NextJS?
- Next.js: Error: React.Children.only expected to receive a single React element child
- Custom _app and _document get ignored when moving files to src/pages folder in Next.js
- how can I use top level “await” in typescript next.js
- You’re importing a component that needs useState. It only works in a Client Component, but none of its parents are marked with “use client”
- TypeError: Cannot read properties of undefined (reading ‘call’) on Next.js
- How to prevent Next.js from instantiating a singleton class/object multiple times?
- Next.js app folder: is there some “entry point”? A direct replacement for _app.tsx?
- How to avoid caching in the app directory of Next.js?
- How to fetch data server-side in the app directory of Next.js? Tried getStaticProps but it’s returning undefined
- Want to have an event handler for the browser’s back button with next.js
- Next.js, getStaticProps not working with component but does with page
- REACT – toggle class onclick
- React: trigger onChange if input value is changing by state?
- Is store.dispatch in Redux synchronous or asynchronous
- React-router – How to pass data between pages in React?
- React: Passing props to function components
- Why is my webpack bundle.js and vendor.bundle.js so incredibly big?
- Access from origin ‘https://example.com’ has been blocked even though I’ve allowed https://example.com/