Reputation: 11
Just wondering how to resolve this, little new to react btw.
<button className="btn btn-light register-button" onClick={this.Subscribe, () => {sweetalertclick();}}
type="submit" style={{ width: '50%' }} disabled={!allValid}>Subscribe</button>
Upvotes: 0
Views: 324
Reputation: 370989
You'll need to call .Subscribe
and sweetalertclick
separately.
onClick={(e) => {
this.Subscribe(e); // if .Subscribe doesn't take an argument, you can omit the `e`
sweetalertclick();
}}
Upvotes: 2