-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathApp.jsx
More file actions
36 lines (34 loc) · 698 Bytes
/
Copy pathApp.jsx
File metadata and controls
36 lines (34 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { useState } from 'react'
import './App.css'
import Card from './components/Card'
function App() {
const [count, setCount] = useState(0)
const memberInfoList = [
{
id: 1,
name: "박상길",
department: "인사팀",
joinDate: "2022-04-19"
},
{
id: 2,
name: "정진호",
department: "기획팀",
joinDate: "2012-02-20"
},
{
id:3,
name: "연민수",
department: "해외영업팀",
joinDate: "2010-01-11"
}
]
return (
<div>
{memberInfoList.map(memberInfo => {
return <Card memberInfo={memberInfo} key={memberInfo.id}></Card>
})}
</div>
)
}
export default App