Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmetozantekin/use-spoiler
🤬 react spoiler hook
https://github.com/ahmetozantekin/use-spoiler
Last synced: 4 days ago
JSON representation
🤬 react spoiler hook
- Host: GitHub
- URL: https://github.com/ahmetozantekin/use-spoiler
- Owner: ahmetozantekin
- Created: 2019-11-20T10:57:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:18:30.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T05:58:47.701Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 2.97 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 51
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# use-spoiler
> react spoiler hook
[![NPM](https://img.shields.io/npm/v/use-spoiler.svg)](https://www.npmjs.com/package/use-spoiler) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
## Install
```bash
npm install --save use-spoiler
```## Usage
```jsx
import React, { Component } from 'react'
import { useSpoiler } from 'use-spoiler'const App = () => {
return (
Suspect Verbal Kint was {useSpoiler('Keyser Söze')} since in the beginning.
{useSpoiler('Narrator and Tyler Durden are actually playing two sides of the same character', 5)}
{useSpoiler('Bruce Willis'),10} was a ghost that only one kid could see.
)
}
```## License
MIT © [ahmetozantekin](https://github.com/ahmetozantekin)
---
❤️ [create-react-hook](https://github.com/hermanya/create-react-hook).