Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor (props) {
super(props)
const activeTab = Children.filter(props.children, (child) => { return child.props.active }).map((it) => {
return it.props.id;
})[0];
this.state = {
activeTab : activeTab || ""
}
this.tabs = {}
}