Just curious is it possible to do this? I know I can create a method that wrap these 2 things together but I would like to do it in one line.
<div onClick={e => this.callnotherMethod(); this.setState({toggleView: !this.state.toggleView})/>Something</div>