Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created May 30, 2018 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannwamba/cfc4792f318347210aa15ef947991aaa to your computer and use it in GitHub Desktop.
Save christiannwamba/cfc4792f318347210aa15ef947991aaa to your computer and use it in GitHub Desktop.
//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