score:3

Accepted answer
const handleChangeInput = (name,value) => {
        setUser((last) => ({
           
            [name]:value,
        })
        );
    }

Related Query

More Query from same tag