FLW2 02.7 Code It Solo

Coin Flipper

In this app, the user clicks a button and the coin lands on either heads or tails, and keeps track of how many times the coin has landed on each.

Instructions

  • Create a 'components' directory in src
  • Create a file for the Flip component
  • Move the code for "Flip" into the Flip component
  • Be sure to add import and export statements to Flip and App

Bonus

  • Create a Coin component that moves out the
  • Create an images file for the coin images
  • Create a Count component and create two instances in App for each of the counts