react-dj-table

git icon
Change theme

Row Selection

RowSelectSelection

Add Options #

   const options = {
selectable: true,
selectedRowCss: "selectedRow"
};

Add click handler to return the selected Row #

   const handleClick = (row) => {
console.log(row)
};

Pass the click handler to the table #

    <Table json={bots} options={options} rowClick={handleClick} />

https://codesandbox.io/s/row-selection-wo0k4?file=/row.css