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