Created
December 31, 2016 22:44
-
-
Save geetotes/75cceba2a44d2f4893de2bc6de53c912 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrettyLoader extends React.Component { | |
constructor() { | |
this.state = { | |
loading: false | |
}; | |
} | |
render() { | |
let loaderStyles = classNames({ | |
'hidden': this.state.loading | |
}); | |
return( | |
<div> | |
<div className={loaderStyles} /> | |
{this.props.children} | |
</div> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. Need to not self-close the opening tag of the inner div.