#Components

81 messages · Page 1 of 1 (latest)

torn thistle
#

Hi, i got this error when i trying to use <Link>

#

any clue why? :0

strange dock
torn thistle
#

oh actually

strange dock
#

where u using <Link> tag

torn thistle
#

it might be related to i used an a tag inside link

strange dock
#

mostly it get in using map

torn thistle
#

ahhh

strange dock
#

show me code

torn thistle
#

yuppp

#

solved with removing the a taggg

#

@strange dock thank you!

strange dock
torn thistle
#

the

#

<a

#

i find an old post syaing, u can't use an <a> inside <Link>

torn thistle
#

wait?

strange dock
torn thistle
strange dock
#

i use <a> tag in <Link> tag

torn thistle
#

oh

#

probably ur <a> doesn't ahve a href prop

#

and that a just acts the same functionality as div?

strange dock
#

yes i dont need to pass href in a tag

#

but must use a tag

torn thistle
#

oh

#

i seeee

strange dock
#

that stuff will not come

torn thistle
#

wait

#

🤔

strange dock
#

and then your users cant open that thing in new tab while clicking middle button of mouse

torn thistle
#

wait

#

what is the diff

#

in ur code

#

if i replace a with div

#

just the left bottom corner thing won't show up?

strange dock
#

learn HTML basics

#

@_@

torn thistle
#

do u know what topic it's called?

strange dock
#

Each Tag specific ability

#

so dont try to use randomly here and there

#

i have seen many people use DIV and dont use BUTTON tag

torn thistle
#

yaaa

strange dock
#

but that decrese Your website SEO Rating and stuffs

torn thistle
#

😮

#

damn

#

thanks for pointing that out to meee

strange dock
torn thistle
#

u are righttt

strange dock
#

like rule says only to use H1 tag once in each page that is for main heading

#

but people spam H1 Tags

#

blah blah

median crag
#

next 13 link automatically puts in the a tag

strange dock
#

^^

torn thistle
#

wait so what is wrong here :0

median crag
#

youll get an error if you use pass an a tag as the first child to a link

strange dock
torn thistle
#

13

median crag
#

that is next 13, next 12 does not show that error

torn thistle
#

sheeeesh

strange dock
#

so dont add <a> tag

torn thistle
#

so i don't need the <a> tag in 13 then

#

ahhh

strange dock
#

noo need its default in next13

#

i use next12 for my website

torn thistle
#

ahhh

strange dock
#

so i told according to that

median crag
#

correct, link is rendering the a tag automatically and its not valid html to have an a tag inside another a tag

torn thistle
#

next js13 will automatically add the a tag

strange dock
#

next13 some features are not stable yet

strange dock
#

so i didnt moved yet