score:0

forEach doesn't return anything. replace forEach with map

const order = {t1: '123', t2: '234'};  

return (
    <TableContainer component={Paper}>
      <Table sx={{ minWidth: 1000 }}>
        <TableHead>
          <TableRow>
            { order && Object.keys(order).map((value) => <TableCell>{ value }</TableCell> )}
          </TableRow>
        </TableHead>
        <TableBody>
        </TableBody>
      </Table>
    </TableContainer>
  );

Related Query

More Query from same tag