Https://www.freecodecamp.org/learn/front-end-libraries/react/render-conditionally-from-props

Tell us what’s happening:

Your code so far


class Results extends React.Component {
constructor(props) {
  super(props);
}
render() {
  return (
    <h1>
    {
this.props.fiftyFifty ? "You Win!" : "You Lose!"
    }
    </h1>
  )
};
};

class GameOfChance extends React.Component {
constructor(props) {
  super(props);
  this.state = {
    counter: 1
  }
  this.handleClick = this.handleClick.bind(this);
}
handleClick() {
  this.setState({
    counter: this.state.counter + 1
  });
}
render() {
       const expression = Math.random() >= 0.5 ? true : false

  return (
    <div>
      <button onClick={this.handleClick}>Play Again</button>
      { /* change code below this line */ }

<h1>
 <Results fiftyFifty={expression} />

</h1>
      { /* change code above this line */ }
      <p>{'Turn: ' + this.state.counter}</p>
    </div>
  );
}
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Render Conditionally from Props

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.

i can’t figure out the mistake in this