1.0.0 • Published 4 years ago

use-spoiler v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

use-spoiler

react spoiler hook

NPM JavaScript Style Guide

Install

npm install --save use-spoiler

Usage

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

const App = () => {
  return (
    <div id='example'>
      <p>Suspect Verbal Kint was {useSpoiler('Keyser Söze')}      since in the beginning.</p>
      <p>Suspect Verbal Kint was {useSpoiler('Keyser Söze', 5)}   since in the beginning.</p>
      <p>Suspect Verbal Kint was {useSpoiler('Keyser Söze', 10)}  since in the beginning.</p>
    </div>
  )
}

License

MIT © ahmetozantekin


This hook is created using create-react-hook.