Skip to content

Instantly share code, notes, and snippets.

@JacobMuchow
Forked from dosterz97/AvatarView.js
Last active June 27, 2022 20:18
Show Gist options
  • Save JacobMuchow/7f457f0d184b70718eec38ab02b05441 to your computer and use it in GitHub Desktop.
Save JacobMuchow/7f457f0d184b70718eec38ab02b05441 to your computer and use it in GitHub Desktop.
Creating our Component
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