Javascript – next.js My app doesn't return an error when input field is invalid
I've created a currency converter app. My app accepts number as input and works well. However, when user types something other than a number or leaves the input field empty, my app does nothing. I want it to return an…