Add the most hilarious jokes to your app or web site!
33 |<DadJoke />
}>
42 | npm install --save react-dadjoke
.
51 | <DadJoke img />
}>
67 | <DadJoke refreshButton />
}>
76 | <DadJoke jokeID="haahVKZDtrc" />
}>
85 | className
(string) adds to wrapping div
or img
.
96 | Default: .dad-joke
97 | jokeID
(string) specify a joke to display
101 | img
(boolean) display an image instead of text
105 | refreshButton
(boolean) display a refresh button
109 | refreshButtonClassName
113 | (string) adds classes(es) to the button
.
114 | Default: .dad-joke__refresh-button
115 |