embark-area-51/lib/modules/webserver/backend/contracts/components/tab.js

13 lines
276 B
JavaScript
Raw Normal View History

2018-04-18 19:06:41 +00:00
class Tab extends React.Component {
render(){
return (
this.props.selectedTab == this.props.id
?
<div id={this.props.id}>
{ this.props.children }
</div>
:
''
);
}
}