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