Sha256: 35e5a2d4f6bdd7e2f4475f1d75aa052f1f9e58d2d666acb1dfacbeb73dfbe712
Contents?: true
Size: 802 Bytes
Versions: 22
Compression:
Stored size: 802 Bytes
Contents
import React, { useState } from 'react' import { Passphrase } from '../../' const PassphraseDefault = (props) => { const [input, setInput] = useState('') const handleChange = (e) => setInput(e.target.value) const [confoInput, setConfoInput] = useState('') const handleConfoChange = (e) => setConfoInput(e.target.value) return ( <> <div> <Passphrase id="my-passphrase" onChange={handleChange} value={input} {...props} /> <Passphrase confirmation onChange={handleConfoChange} value={confoInput} {...props} /> <span>{input === confoInput ? 'They match!' : 'They don\'t match!'}</span> </div> </> ) } export default PassphraseDefault
Version data entries
22 entries across 22 versions & 1 rubygems