Skip to content

New props maybe ?  #6

@Khachatour

Description

@Khachatour

Hey there! Awesome thing right here thanks!
Only one suggestion, what you think ? Maybe there can be showDirectorInfo or something like that boolean prop to allow control visibility of Director more easily ?

export default class extends React.PureComponent {
  constructor(props) {
    super(props);
    props.showDirectorInfo && showDirector();
  }
  render() {
    return this.props.children;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions