2022-04-16 12:50:42 -05:00
|
|
|
const List = ({data}) => {
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
return (
|
|
|
|
<table className="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Link</th>
|
2022-04-19 07:22:53 -05:00
|
|
|
<th>Tag</th>
|
2022-04-16 12:50:42 -05:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{data.map((e, i) => {
|
|
|
|
return <tr key={i}>
|
|
|
|
<td>{i + 1}</td>
|
2022-04-19 07:22:53 -05:00
|
|
|
<td>{e.name}</td>
|
|
|
|
<td>{e.title}</td>
|
|
|
|
<td>{e.link}</td>
|
|
|
|
<td>{e.tag}</td>
|
2022-04-16 12:50:42 -05:00
|
|
|
</tr>
|
|
|
|
})}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default List
|