A component of a custom reaction table cell that references several row properties

I need to sort the table by column, so I rewrite my component of the response table using the ReactTable component with the reaction table.

One of the cells in the table will contain a link and must access another row property. So far, the link column code looks like this:

{
    Header: "Name",
    accessor: "name",
    Cell: cellInfo => (
        <Link className="scenarioDetailLink"
              to={cellInfo.row.linkDestination}
              id={cellInfo.row.linkName}>{cellInfo.row.name}</Link>
    )
},

This results in the following elements: td

The generated anchor element does not contain id and href properties. What am I doing wrong.

+4
source share
1 answer

, cellInfo.original, cellInfo.row. Cell, cellInfo.original, ( ). row , .

+4

Source: https://habr.com/ru/post/1684776/


All Articles