if (coinToss() === 'heads') { img = <img src={pics.kitty} /> } else { img = <img src={pics.doggy} /> }