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.foundation = new MDCSwitchFoundation(this.adapter);
this.foundation.init();
this.foundation.setChecked(this.props.checked!);
this.foundation.setDisabled(this.props.disabled!);
}