Last active
February 22, 2018 14:42
-
-
Save OussaZaki/ad6dff7c1d295f35ec4f27ca91bd2f62 to your computer and use it in GitHub Desktop.
Conditional Rendering - Loader Component
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
function Loader(props) { | |
if (!props.showLoader) { | |
return null; | |
} | |
return ( | |
<div className="loader"> | |
<WavyLoader black /> | |
<p>{props.message}</p> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment