1<tbody>
2 {
3 this.state.categories.map( map_category=>{
4 return (
5 <tr>
6 <th scope = "row">1</th>
7 <td>{map_category.name}</td>
8 <td>{map_category.active==1?("Active") : ("Inactive") }</td>
9 <td>{map_category.created_at}</td>
10 <td>{map_category.updated_at}</td>
11 <td><Link to={`/category/edit/${map_category.id}`}>Delete</Link></td>
12 <td><a href = "#" onClick = {this.onDelete.bind(this,map_category.id)}>Delete</a></td>
13 </tr>
14 )
15 })
16 }
17 </tbody>