2.0.3 • Published 3 years ago
use-happy v2.0.3
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>)
}