green6060/digicert-public-library-demo

input type

Opened this issue · 0 comments

onChange={(e) => setIncrementAmount(e.target.value)}

this is why you're trying to set your state as a string and parse it. Instead of trying to handle it there you'll be better served by making this a type of number for your input, and yes you can get rid of the side spinners (if you really want, maybe they'll be useful in this case?)

At the very least handle the parsing here, currently I can type anything I want and break your entire "app"