Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
uNmAnNeR authored Jan 28, 2022
1 parent 922b907 commit 3cbeb1d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/react-imask/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,16 @@ import { useIMask } from 'react-imask';

function IMaskWithHook () {
const [ opts, setOpts ] = useState({ mask: Number });
const { ref, maskRef } = useIMask(opts);
const {
ref,
maskRef,
value,
setValue,
unmaskedValue,
setUnmaskedValue,
typedValue,
setTypedValue,
} = useIMask(opts);

return (
<input ref={ref} />
Expand Down

0 comments on commit 3cbeb1d

Please sign in to comment.