React Hook, Hooks, React.
e.target.value })} /> <input type=”text” value={name.lastName} onChange={e => setName({…name, lastName: e.target.value })} /> <h2>Your First Name is-: {name.firstName}</h2> <h2>Your Last Name is-: {name.lastName}</h2> </form> </div> ) } export default HooksCounter NOTE:useState doesnot