skip to Main Content

I imported social media logos to my react code, now I want to pass a link to it so that the logo will be responsive.
Help me out please.. I have tried going to YouTube.

I have tried using react-dom, but I’m getting it confused.

2

Answers


  1. If you’re asking how to make the displayed logos into hyperlinks that take you to the social media pages, you can wrap it in an tag with the ‘href’ property set to whatever URL you want to make it clickable.

    Example:

    <a href="https://google.com">
      <img src="path-to-icon" />
    </a>
    

    Also, it’s typically required to post more details (Like code, how to reproduce, etc) when asking a question, please see the How to Ask for more details 🙂

    Hope this helps!

    Login or Signup to reply.
  2. I don’t know what you are really trying to do. If you want it as a link, use <a><img></a>.By responsive, do you mean how it would look like in different devices? If so, you might have to include @media screen in your css.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search