Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/01-color-renderer/ColorRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ const colors = [{

export default function ColorRenderer () {
return (
<h2>
Use the Color component to render each
item in the colors array on the page!
</h2>
<div>
{(colors instanceof Array && colors.length > 0) && colors.map((color) => <Color key={color.name} name={color.name} hex={color.hex} />)}
</div>
)
}