2.0.3 • Published 5 years ago

use-happy v2.0.3

Weekly downloads
12
License
ISC
Repository
-
Last release
5 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

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

1.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago