I am trying to disable a submit button. I tried using setState button but because I'm using stripe elements on that page, it's giving me an error if the stripe card form is not there.
Here's the render function:
render() {
return (
<div className="mb-3">
<button type="submit" className="btn btn-primary">
Book now
</button>
</div>
)
}
How can I disable the submit button in react?