class MenuItem extends React.Component { render(){ let classNames = "list-group-item list-group-item-action d-flex align-items-center "; let icon = "fe " + this.props.icon; if(this.props.target == this.props.selectedTab){ classNames += "active"; } return {this.props.text} ; } }