Home > database >  how to add link in react tailwind?
how to add link in react tailwind?

Time:09-01

I am create project using react & tailwind. I would like to redirect user on next page once click on link. I try <a /> tag but couldn't see any difference between <p /> and <a /> tags. I need to download any npm pakage?

CodePudding user response:

yes, <p /> and <a /> both tags are looks like same without classes but both have own properties. You need to add class in <a /> tags. Like,
<a href="your_link" className="text-blue-400">redirect</a>

  • Related