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 = new MDCIconToggle(this.control);
this.MDComponent.listen('MDCIconToggle:change', this._onChange);
}
componentWillUnmount() {
public componentDidMount() {
super.componentDidMount();
if (this.control) {
this.MDComponent = new MDCIconToggle(this.control);
this.MDComponent.listen('MDCIconToggle:change', this.onChange);
}
}