Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setColorSelections() {
- const colorItems = colors.map((thecolor) =>
- <li
- onClick={() => this.setCurrentColor(thecolor)}
- key={thecolor} >
- {thecolor}
- </li>
- );
- return (
- <ul>
- {colorItems}
- </ul>
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement