import React from 'react'; import styles from './TabBar.css'; class TabBar extends React.Component { constructor(props) { super(props); this.handleClickTab = this.handleClickTab.bind(this); } handleClickTab(tabId) { if (this.props.onChange) { this.props.onChange(tabId); } } render() { const {children, activeTab, cStyle = 'base'} = this.props; return (