Arrow function syntax will be
(a,b,c) => { }
Like this right ?
But I have seen mosh sir writing the follow code in vidly project . I didnt get why he is using paranthesis instead of flower bracket
<thead>
<tr>
<th>Title</th>
<th>Genre</th>
<th>Stock</th>
<th>Rate</th>
</tr>
</thead>
<tbody>
{this.state.movies.map((movie) => (
<tr>
<td>{movie.title}</td>
<td>{movie.genre.name}</td>
<td>{movie.numberInStock}</td>
<td>{movie.dailyRentalRate}</td>
</tr>
))}
</tbody>
</table>
Thanks in advance