I\'ve been experimenting with React. In my experiement, I\'m using the Reactstrap framework.When I click a button, I\'ve noticed that the HTML form submits. Is there a way t
componentDidUpdate(){ $(".wpcf7-submit").click( function(event) { event.preventDefault(); }) }
You can use componentDidUpdate and event.preventDefault() to disable form submission.As react does not support return false.
componentDidUpdate
event.preventDefault()