I have a cart link in my html file and it shows "cart" as a sitring when i display it. I want to replace "cart" string with a font awesome icon but since i used React to implement the code i could not find how to do that.
Here is my code:
<Link to="/cart">
Cart
{cartItems.length > 0 && (
<span className="badge">{cartItems.length}</span>
)}
</Link>
and my cart curently displayed like that cart