class MyClass extends React.Component {
constructor(props) {
super(props);
this.state = {
current: 'one'
};
}
render() {
return (
<section className="section">
<Tab value="one" active={this.state.current === 'one'} onClick={() => this.setState({current: 'one'})}>One</Tab>
<Tab value="two" active={this.state.current === 'two'} onClick={() => this.setState({current: 'two'})}>Two</Tab>
</section>
)
}
}