score:5

Accepted answer
const columns = [
      {
        title: "First Name",
        dataIndex: "firstName",
        className: "col-first-name",
        render: (text,record) => (
          <Link to={"/athletes/" + record.id}>{text}</Link>
        ),
      },
      {
        title: "Last Name",
        dataIndex: "lastName",
        className: "col-last-name"
      },
      {
        title: "Email",
        dataIndex: "email",
        className: "col-email",
      }
    ];

score:1

const columns = [{
    title: "First Name",
    dataIndex: "firstName",
    className: "col-first-name",
    render: (text, record) => (
        <Link to={`/athletes/${record.id}`}>{text}</Link>
    ),
}, {
    title: "Last Name",
    dataIndex: "lastName",
    className: "col-last-name"
}, {
    title: "Email",
    dataIndex: "email",
    className: "col-email",
}];

Related Query

More Query from same tag