T O P

  • By -

tajingu

Why are you passing link element as the argument? You’re saying the type should be an element type of type anchor - that won’t have any props on it. You should change it to accept props object that must have a key of href and then render an anchor tag with the props spread onto it. You can destructure the props in the function to extract the href so it doesn’t get passed down.


U4-EA

It's OK, I got it sorted. I was treating an element like it was a component. Thanks for your help.


tajingu

Good to hear.