Skip to content

Instantly share code, notes, and snippets.

@lildata
Created June 5, 2019 14:52
Show Gist options
  • Save lildata/e35f1cfb25dd102504ab7164ba037304 to your computer and use it in GitHub Desktop.
Save lildata/e35f1cfb25dd102504ab7164ba037304 to your computer and use it in GitHub Desktop.
React Emoji
import React from 'react';
export default function Emoji(props) {
return(
<span
className="emoji"
role="img"
aria-label={props.l ? props.l : ""}
>
{props.ji}
</span>);
}
import Emo from './Emoji';
<Emo ji="🏠" l="home"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment