Skip to content

Commit

Permalink
Merge pull request #15 from the-collab-lab/ky-jf-render-item-names
Browse files Browse the repository at this point in the history
Render list items in List component
  • Loading branch information
mentalcaries committed Apr 8, 2023
2 parents 85a5d11 + ad79133 commit ffb436c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/views/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ export function List({ data }) {
Hello from the <code>/list</code> page!
</p>
<ul>
{/**
* TODO: write some JavaScript that renders the `data` array
* using the `ListItem` component that's imported at the top
* of this file.
*/}
{data.map((item) => (
<ListItem key={item.id} name={item.name} />
))}
</ul>
</>
);
Expand Down

0 comments on commit ffb436c

Please sign in to comment.