An open API service indexing awesome lists of open source software.

https://github.com/matthewbeckwith/react-dadjokes

React Component to add random dad joke(s) into your project
https://github.com/matthewbeckwith/react-dadjokes

dadjokes npm-package reactjs

Last synced: 2 months ago
JSON representation

React Component to add random dad joke(s) into your project

Awesome Lists containing this project

README

        

# react-dadjokes

> 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](https://img.shields.io/npm/v/react-dadjokes.svg)](https://www.npmjs.com/package/react-dadjokes) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-dadjokes
```

## Usage

```tsx
import React, { Component } from 'react'

import DadJokesComponent from 'react-dadjokes'
import 'react-dadjokes/dist/index.css'

class Example extends Component {
render() {
return
}
}
```

## License

MIT © [matthewBeckwith](https://github.com/matthewBeckwith)