Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initSnackbar = (snackbarEl) => {
if (!snackbarEl) {
return;
}
this.snackbar = new MDCSnackbar(snackbarEl);
this.snackbar.listen('MDCSnackbar:closed', () => this.props.handleClosed());
}