understanding <a> in nextjs
Hello I am a little confused about how links work in nextjs I am using the
<a>
tag.
In the first image I use the <a> tag an get no errors
but in the second image I get an error.
any insight on why this is the case?9 Replies
image 1
![](https://utfs.io/f/986450da-59fd-4050-9331-a37f8729e050-1nq2cb.png)
image 2
![](https://utfs.io/f/ae818b06-1774-437b-8027-fa270b890c13-1nq2cb.png)
you are having a typo on the second one
herf
instead of hrefLMAO thats what happens when you havent slept in 2 days
also
if you can, use next
<Link>
component
will avoid a full page refreshah alr
sorry for my idiocy
again havent slept in 2 days
so
its all good