use-happy
v2.0.3
Published
React hook to get an accessible stateful emoticon
Downloads
494
Readme
use-happy
A slightly overengineered React hook to render a random, accessible emoticon from a small and predictable set of icons.
Usage
import { useHappy, useSad } from "use-happy";
const MyHappyFace = () => {
const happy = useHappy()
const sad = useSad({
fontSize: "48px",
})
return (<div>
{happy}
{sad}
</div>)
}