-
-
Save JacobMuchow/7f457f0d184b70718eec38ab02b05441 to your computer and use it in GitHub Desktop.
Creating our Component
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'; | |
export class AvatarView extends React.Component { | |
mainViewRef = React.createRef() | |
render = () => ( | |
<div | |
ref={this.mainViewRef} | |
className="avatarView" | |
style={{ | |
display: `${!this.props.showIFrame ? 'none': 'block'}`, | |
height: calc(100vh - 100px); | |
}} | |
/> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment