Skip to content

Instantly share code, notes, and snippets.

@ryandrewjohnson
Last active February 23, 2017 02:27
Show Gist options
  • Select an option

  • Save ryandrewjohnson/3dec7dd1a016922866b4543b739dcaea to your computer and use it in GitHub Desktop.

Select an option

Save ryandrewjohnson/3dec7dd1a016922866b4543b739dcaea to your computer and use it in GitHub Desktop.
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