import React, { useState } from 'react' import Caption from '../../pb_caption/_caption' import TextInput from '../../pb_text_input/_text_input' import Title from '../../pb_title/_title' const TextInputMask = (props) => { const [ssn, setSSN] = useState('') const handleOnChangeSSN = ({ target }) => { setSSN(target.value) } const ref = React.createRef() const [formFields, setFormFields] = useState({ currency: '', zipCode: '', postalCode: '', ssn: '', }) const handleOnChangeFormField = ({ target }) => { const { name, value } = target setFormFields({ ...formFields, [name]: value }) } return (


{'Event Handler Props'}
{'onChange'}
{ssn !== '' && ( {`SSN is: ${ssn}`} )}
) } export default TextInputMask