React-Table如何在单元格中弹出?

How to React-Table Pop Up in the cell?

如何在 table 中添加按钮并单击它打开弹出窗口?

      {
       Header: 'test', 
       accessor: 'test', 
       headerClassName: 'wordwrap'
      },

您可以将 return 反应组件的功能赋予访问器:

  {
     Header: 'test', 
     accessor: item => <Button onClick={() => this.handleClick(item.id)} />, 
     headerClassName: 'wordwrap'
  },