-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMovieList.js
More file actions
29 lines (28 loc) · 775 Bytes
/
MovieList.js
File metadata and controls
29 lines (28 loc) · 775 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
function MovieList(props) {
return(
<>
<table className="table table-striped table-hover">
<thead>
<tr className="table-dark">
<th>Movie Name</th>
<th>Actor</th>
<th>Director</th>
<th>Movie Type</th>
</tr>
</thead>
<tbody>
{props.movies.map(item =>
<tr>
<td>{item.movieName}</td>
<td>{item.director}</td>
<td>{item.actor}</td>
<td>{item.platform}</td>
<td>{item.movieType.join(" , ")}</td>
</tr>
)}
</tbody>
</table>
</>
)
}
export default MovieList;