({ target })
| 5 | const [ formState, setFormState ] = useState( initialForm ); |
| 6 | |
| 7 | const onInputChange = ({ target }) => { |
| 8 | const { name, value } = target; |
| 9 | setFormState({ |
| 10 | ...formState, |
| 11 | [ name ]: value |
| 12 | }); |
| 13 | } |
| 14 | |
| 15 | const onResetForm = () => { |
| 16 | setFormState( initialForm ); |
nothing calls this directly
no outgoing calls
no test coverage detected