/use-spoiler

🤬 react spoiler hook

Primary LanguageJavaScript

use-spoiler

react spoiler hook

NPM JavaScript Style Guide

Install

npm install --save use-spoiler

Usage

import React, { Component } from 'react'
import { useSpoiler } from 'use-spoiler'

const App = () => {
  return (
    <div>
      <p>Suspect Verbal Kint was {useSpoiler('Keyser Söze')} since in the beginning.</p>
      <h2> {useSpoiler('Narrator and Tyler Durden are actually playing two sides of the same character', 5)}</h2>
      <p>{useSpoiler('Bruce Willis'),10} was a ghost that only one kid could see.</p>
    </div>
  )
}

License

MIT © ahmetozantekin


❤️ create-react-hook.