Home > Software engineering >  how to make the <FaFacebookF /> icon as a link?
how to make the <FaFacebookF /> icon as a link?

Time:07-04

import React from 'react' ; import {BsTwitter , BsInstagram} from 'react-icons/bs'; import {FaFacebookF} from 'react-icons/fa'; import './SocialMedia.scss';

const SocialMedia = () => { return (

<div>
<FaFacebookF />
</div>
<div>
<BsInstagram/>
</div>  
) }

export default SocialMedia;

CodePudding user response:

You can use <a> element like <a href={url}><FaFacebookF /></a> or you can consider React Router

CodePudding user response:

Do you want to make link to facebook website? Try this one!

<div>
  <a href="www.facebook.com/username">
    <FaFacebookF />
  </a>
</div>
  • Related