Moved the zoomLevel state assignment to a newer useState hook function, making it easier (and shorter) to update that state within event handlers. The slider onChange is a single easy line, and the buttons handlers are two lines for clarity.
Moved the zoomLevel state assignment to a newer useState hook function, making it easier (and shorter) to update that state within event handlers. The slider onChange is a single easy line, and the buttons handlers are two lines for clarity.