Can someone explain to me why passing in state (instead of using this.state) was failing here?
I thought that was the more appropriate way to do it because of the possible batch updates of state.
The answer was:
  handleClick() {
    this.setState({
      counter: this.state.counter + 1 // Change this line
    });
  }
while I was trying:
  handleClick() {
    this.setState(state => {
      counter: state.counter + 1 // Change this line
    });
  }
From this exercise:
https://www.freecodecamp.org/learn/front-end-libraries/react/render-conditionally-from-props