The Lightbulb

Switch Using React(WIP)

The lightbulb was a project created utilizing the React framework and Javascript.

User Story

  1. As a user, I can see a square on the screen with the word off in the middle.
  2. As a user, I can click anywhere on the square. When I click the square the words change from off to on and then back off again.
  3. As a user, when I click the box the color goes from white to yellow. The words on or off are still displayed in the box.
  4. As a user, instead of seeing a box, I see a picture of a light switch in the off position and a white light bulb.
  5. As a user, when I click on the light switch it turns on and the light bulb changes from white to yellow.
  6. As a user, I can see two buttons: 1) Add a Light Switch and 2) Remove a Light Switch.
  7. As a user, when I click the Add button I can another Light Switch.
  8. As a user, when I click the Remove button I can delete a Light Switch.

Github link