From 4ff6b71cdc2b0f1c9f746a7a086bd3a7396e3a4f Mon Sep 17 00:00:00 2001 From: adilk0728 Date: Wed, 21 Feb 2024 19:33:01 +0000 Subject: [PATCH] Change title, Make List component tidier --- frontend-mark-alive/mark-alive/public/index.html | 2 +- frontend-mark-alive/mark-alive/src/components/list.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend-mark-alive/mark-alive/public/index.html b/frontend-mark-alive/mark-alive/public/index.html index ede1a59..590936e 100644 --- a/frontend-mark-alive/mark-alive/public/index.html +++ b/frontend-mark-alive/mark-alive/public/index.html @@ -3,7 +3,7 @@ - React App + Mark Alive
diff --git a/frontend-mark-alive/mark-alive/src/components/list.js b/frontend-mark-alive/mark-alive/src/components/list.js index 840577b..6a5c21e 100644 --- a/frontend-mark-alive/mark-alive/src/components/list.js +++ b/frontend-mark-alive/mark-alive/src/components/list.js @@ -10,10 +10,11 @@ export const List = ({ Headers, data }) => { - {data.map((element, index) => ( + {data.map((element) => ( - {element.id} - {element.url} + {Object.values(element).map((v) => ( + {v} + ))} ))}