ever wanted a random dad joke in your ReactJs project? Well here it is! This is a simple React Component using the API icanhazdadjoke. Just install with NPM or Yarn and include anywhere in your project you'd like a random dad joke!
npm install --save react-dadjokes
import React, { Component } from 'react'
import DadJokesComponent from 'react-dadjokes'
import 'react-dadjokes/dist/index.css'
class Example extends Component {
render() {
return <DadJokesComponent />
}
}
MIT © matthewBeckwith