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
image 2
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