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.
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
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:
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!
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.