Skip to content
Advertisement

Tag: onsubmit

Button onsubmit() event is not working on react

I tried to coding the form submission code on ReactJS and Express,NodeJS but I got some problem with the onSubmit() event Everytime that I code <form onSubmit={loginUser}> the button won’t submit, can’t even click. But if I remove to <form>, the button can click normally I changed in to <input type=’submit’>Login</input> and the page has gone blank Here’s the code

Advertisement