score:0

Buttons do not have a submit event. Try this

<button className="submit-btn" type="submit" onClick={handleSubmit}>

Related Query

More Query from same tag