score:1

Accepted answer
setFullName((prevValue) => ({
    ...prevValue, [name] : value
}));

Related Query