> searchData = () => {
// Start the loader
this.setState({
visibility: true,
});
// ....Your logic goes here
// Stop the loader
this.setState({
visibility: false,
});
};
// Start the loader
this.setState({
visibility: true,
});
// ....Your logic goes here
// Stop the loader
this.setState({
visibility: false,
});
};