I want to create entire table from a JSON array include dynamic ths, so a decoupled the head part to:
th
import React from \'react\'; import TableDataT
There is a typo again in your .. part, missing {} for your expression. For the dynamic solution after first map you need to map your Objects as well.
..
{}
{ Object.keys(currElement).map(key => currElement[key]) }