Last active
March 10, 2016 10:46
-
-
Save mistadikay/09bfebf8a0f147576613 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
import React from 'react'; | |
import { BEM } from 'rebem'; | |
class Popup extends React.Component { | |
render() { | |
return BEM( | |
{ | |
block: 'popup', | |
mods: { visible: this.props.visible } | |
}, | |
BEM({ block: 'popup', elem: 'overlay' }), | |
BEM({ block: 'popup', elem: 'content' }, this.props.children) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment