Display/get details based on ID after clicking button in the table cell in the data table – React.js

I am very new to react. Maybe this is a very simple question. I have a data table with mock data using react data table. How to make table cell clickable and get the data after clicking to display the details on that form? Both form and data table are in the same page.

Here is the link https://codesandbox.io/s/react-table-onclick-row-to-display-data-on-form-unsolved-3636s?

Answer

I modified the sandbox here stating how to do this, basically you need a state to store the activeRow;