Skip to content

Commit e13a6d0

Browse files
committed
Outputting List Data Dynamically
1 parent 0d6807d commit e13a6d0

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/App.jsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,9 @@ function App() {
3535
<section id="core-concepts">
3636
<h2>Time to get started!</h2>
3737
<ul>
38-
<CoreConcept
39-
title={CORE_CONCEPTS[0].title}
40-
description={CORE_CONCEPTS[0].description}
41-
image={CORE_CONCEPTS[0].image}
42-
/>
43-
<CoreConcept {...CORE_CONCEPTS[1]} />
44-
<CoreConcept {...CORE_CONCEPTS[2]} />
45-
<CoreConcept {...CORE_CONCEPTS[3]} />
38+
{CORE_CONCEPTS.map(concept => (
39+
<CoreConcept key={concept.title} {...concept} />
40+
))}
4641
</ul>
4742
</section>
4843
<section id="examples">

0 commit comments

Comments
 (0)