import { Component } from 'react'; import { storiesOf } from '@storybook/react'; import { boolean } from '@storybook/addon-knobs'; import Tab, { TabBar } from './index'; class Wrapper extends Component { state = { activeTab: 'first', }; onTabChange = tabName => { this.setState({ activeTab: tabName }); }; render() { const { activeTab } = this.state; return (