Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 860 Bytes

File metadata and controls

15 lines (13 loc) · 860 Bytes

React Random Color Generator This random color generator web application using React shows a random color when a button is clicked: A button with the exact text Generate will cause a new color to be generated when it is clicked Once a color is generated, the background color of a div with the following text Generated Color: , changes.

#TODOs

  • use a library to generate random color
  • useState with initial value (random color)
  • create a button containing the text "Generate"
  • create random color with a button click
  • update the background color of the div once the random color is generated
  • inside the div generate the following text "Generated Color: "
  • allow user to specify hue (eg. green or red or blue)
  • allow user to specify luminosity (eg. light or dark)