To update an object key in the state select the key and assign its value to that state
onClick={(e) =>
setBooks((prev) => ({
...prev,
physics: e.target.value,
}))
}
To update an object key in the state select the key and assign its value to that state
onClick={(e) =>
setBooks((prev) => ({
...prev,
physics: e.target.value,
}))
}
For further actions, you may consider blocking this person and/or reporting abuse
Vladyusha -
Bobby Hall Jr -
Martins Gouveia -
Israel Morales -
Top comments (0)