Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. setColorSelections() {
  2. const colorItems = colors.map((thecolor) =>
  3. <li
  4. onClick={() => this.setCurrentColor(thecolor)}
  5. key={thecolor} >
  6. {thecolor}
  7. </li>
  8. );
  9. return (
  10. <ul>
  11. {colorItems}
  12. </ul>
  13. )
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement