Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public componentDidMount() {
super.componentDidMount();
if (this.control) {
this.MDComponent = new MDCSnackbar(this.control);
if (
this.props.dismissesOnAction === undefined ||
this.props.dismissesOnAction === null
) {
this.MDComponent.dismissesOnAction = true;
} else {
this.MDComponent.dismissesOnAction = this.props.dismissesOnAction;
}
}
}