score:1

Accepted answer
const [newUser, setNewUser] = useState({
  userName: "",
  email: "",
  password: "",
  error: null,
});

Related Query

More Query from same tag