Last active
February 23, 2017 02:20
-
-
Save ryandrewjohnson/da5cff29514dbfaa9f53581e5b65ea9f to your computer and use it in GitHub Desktop.
This file contains 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
import React from 'react'; | |
const Spinner = props => { | |
const { isSpinning } = props; | |
renderSpinner = ( | |
<div className="spinner"> | |
<div className="double-bounce1"></div> | |
<div className="double-bounce2"></div> | |
</div> | |
); | |
return isSpinning ? renderSpinner : null; | |
}; | |
export default Spinner; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment