2.0.3 • Published 3 years ago

use-happy v2.0.3

Weekly downloads
12
License
ISC
Repository
-
Last release
3 years ago

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>)
}
2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

1.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago