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
- Host: GitHub
- URL: https://github.com/matthewbeckwith/react-dadjokes
- Owner: matthewBeckwith
- Created: 2020-09-01T20:28:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T20:40:26.000Z (over 4 years ago)
- Last Synced: 2025-03-19T02:48:22.033Z (2 months ago)
- Topics: dadjokes, npm-package, reactjs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/react-dadjokes
- Size: 207 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!
[](https://www.npmjs.com/package/react-dadjokes) [](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)