I want to do one to prevent repeated clicks, but now isClickable can"t be set to false, to comment out settimeout. Of course, after adding normal disable, disable becomes invalid. -sharp-sharp-sharp problem description
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
handleButtonClickTest = (hireTeamId) = > {
this.props.actions.deleteHiringTeamMember(hireTeamId);
this.setState({
isClickable: false,
});
setTimeout(this.setState({ isClickable: true }), 5000);
}