Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to display html link inside table cell using reactjs material-table

import { Link } from 'react-router';

const columns = [
  {
    header: '',
    id: 'links',
    render: ({ row }) => (<Link to={{ pathname: `/example/${row.id}` }}>{row.name}</Link>)
  }
];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #display #html #link #table #cell #reactjs
ADD COMMENT
Topic
Name
4+7 =