Last active
February 23, 2017 02:27
-
-
Save ryandrewjohnson/3dec7dd1a016922866b4543b739dcaea 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 Modal = props => { | |
const { isOpen, children } = props; | |
const renderModal = ( | |
<div className="blocker"> | |
<div className="content"> | |
{ children } | |
</div> | |
</div> | |
); | |
return isOpen ? renderModal : null; | |
}; | |
export default Modal; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment