class CoinToss extends React.Component { constructor(props) { super(props); this.state = { imagePath: '/static/img/coin.png', imagePathGuess: '/static/img/coin.png', } } render() { return ( <>
Coin toss: Win or lose?
Coin toss outcome The winning side
 
{/*

Please enter the coin toss outcome:

*/}
Heads Tails
this.props.winningSideUpdate("H")} className="largerRadio"/> this.props.winningSideUpdate("T")} className="largerRadio"/>
You won this single risk.
You lost this single risk.
) } }