Answers for "Link to"

0

Link to

<tbody>
                        {
                            this.state.categories.map( map_category=>{
                                return (
                                    <tr>
                                    <th scope = "row">1</th>
                                    <td>{map_category.name}</td>
                                    <td>{map_category.active==1?("Active") : ("Inactive") }</td>
                                    <td>{map_category.created_at}</td>                                    
                                    <td>{map_category.updated_at}</td>
                                    <td><Link to={`/category/edit/${map_category.id}`}>Delete</Link></td>
                                    <td><a href = "#" onClick = {this.onDelete.bind(this,map_category.id)}>Delete</a></td>
                                    </tr>
                                )
                            })                        
                        }                      
                    </tbody>
Posted by: Guest on April-07-2020

Browse Popular Code Answers by Language