Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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).