'Table with one row ignoring number of columns

I want to create a table where the rows are clickable. When a row is clicked, I want to show input fields.

https://codesandbox.io/s/crazy-mountain-oye5rw?file=/src/App.js

For now just assume the word "test" is the input fields. I want to show/hide depending on row click

Table



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source