Skip to content

Commit 905e7b1

Browse files
committed
Render challenges no App
1 parent 516db5b commit 905e7b1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/App.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
import './App.css'
1+
import { Card } from './components/Card'
2+
import * as rawChallenges from './challenges'
23

34
export function App() {
4-
return <div className="App">App</div>
5+
const challenges = Object.values(rawChallenges)
6+
7+
return (
8+
<div className="App">
9+
{challenges.map((challenge) => (
10+
<Card key={challenge.title} {...challenge} />
11+
))}
12+
</div>
13+
)
514
}

0 commit comments

Comments
 (0)