score:2

so using suggestion provided by @praveen kumar.

i removed the extra handlers and just changed the below line to pass the value from selected option as an argument.

<select onchange={(e) => onupdateshelf(book, e.target.value)}>

Related Query

More Query from same tag