Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
if (this.props.fade) {
this.foundation = new MDCFadingTabIndicatorFoundation(this.adapter);
} else {
this.foundation = new MDCSlidingTabIndicatorFoundation(this.adapter);
}
this.foundation.init();
if (this.props.active) {
this.foundation.activate();
}
}