Created
April 19, 2020 18:55
-
-
Save edwardsmoses/338c5b2b5dac34174431e314ead3ef9a to your computer and use it in GitHub Desktop.
Render Emojis in React..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const Emoji = props => ( | |
<span | |
className="emoji" | |
role="img" | |
aria-label={props.label ? props.label : ""} | |
aria-hidden={props.label ? "false" : "true"} | |
> | |
{props.symbol} | |
</span> | |
); | |
export default Emoji; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment