React Hook, Hooks, React.
export default HooksCounter Example3: useState() as Object import React, { useState } from ‘react’ function HooksCounter() { const [name, setName] = useState({ firstName: ‘’, lastName: ‘’ }) return ( <div> <form> <input type=”text” value={name.firstName} onChange={e => setName({…name,firstName :