- {() => {
- const [value, setValue] = React.useState('');
- const [emailValue, setEmailValue] = React.useState('');
- const [phoneValue, setPhoneValue] = React.useState('');
- const [textMessageValue, setTextMessageValue] = React.useState('');
- const handleChange = event => setValue(event.target.value);
- const handleEmailChange = value => {
- setEmailValue(value);
- }
- const handlePhoneChange = value => {
- setPhoneValue(value);
- }
- const handleTextMessageChange = value => {
- setTextMessageValue(value);
- }
- return (
-
- handleEmailChange(e)
- }}
- name="contact"
- selected={value === "email"}
- onChange={e => handleChange(e)}
- />
- handlePhoneChange(e)
- }}
- name="contact"
- selected={value === "phone"}
- onChange={e => handleChange(e)}
- />
- handleTextMessageChange(e)
- }}
- name="contact"
- selected={value === "text"}
- onChange={e => handleChange(e)}
- />
-
- );
- }}
-
-