use-spoiler
v1.0.0
Published
react spoiler hook
Downloads
47
Readme
use-spoiler
react spoiler hook
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.