Created
March 10, 2016 05:34
-
-
Save mistadikay/57ee5cab18e44586b579 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 b from 'b_'; | |
const block = b.with('popup'); | |
class Popup extends React.Component { | |
render() { | |
return ( | |
<div className={b({ visible: this.props.visible })}> | |
<div className={b('overlay')}></div> | |
<div className={b('content')}>{this.props.children}</div> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Denis, tell me please, how exactly does this work? This looks nice, I'd like to use this technique.
Thank you in advance!