1

Please help me pass the userid from the onclick event to a new end point. Below is my code. Console.log gives me the correct output, but both & tags did not seem to work in the below scenario.

getTrProps={(state, rowInfo, column, instance) => {
                    return {
                        onClick: e => {
                            console.log(rowInfo.original.userid);
                           <a href={'/user/profile/' + `${rowInfo.original.userid}` + '/info'}/>
                        }
                    }
                }}
Spurthi
  • 41
  • 2
  • 6
  • Possible duplicate of [react-table component onClick event for a column](https://stackoverflow.com/questions/43112105/react-table-component-onclick-event-for-a-column) – Rambatino May 09 '19 at 02:53

0 Answers0