In my React component I have a button meant to send some data over AJAX when clicked. I need to happen only the first time, i.e. to disable the button after it\'s first use.
If you want, just prevent to submit.
How about using lodash.js debounce
lodash.js debounce
Grouping a sudden burst of events (like keystrokes) into a single one.
https://lodash.com/docs/4.17.11#debounce
{ await this.props._selectUserTickets(this.props._accountId) }, 1000)} >