Issue of adding link in react

for example
if add a link like this

 <a href=""></a>

link is redirected to http://localhost:3000/

any idea why it happens so

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


I was not aware of that. I will take care of that. Can you help me to solve my issue

We would need to see your full project to have a better understanding of how to help you. Do you have your project on or or GitHub?

Thanks for responding. That issue is resolved.