Instantly share code, notes, and snippets.

Embed
What would you like to do?
//Preloader.js
// ...
class Preloader extends Component {
constructor(props) {
super(props);
this.state = {
startLoader: 0,
numberOfSpins: 360 * 5
};
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
this.setState({
startLoader: 1
});
}
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment