I get an error of unexpected token right where jsx begins. How to use JSX inside directive controller? Do I need to change attribute of a file somehow?
controller: function($scope, $t){
var Table = FixedDataTable.Table;
var Column = FixedDataTable.Column;
React.render(
<Table
rowHeight={50}
rowGetter={rowGetter}
rowsCount={rows.length}
width={5000}
height={5000}
headerHeight={50}>
<Column
label="Col 1"
width={3000}
dataKey={0}
/>
<Column
label="Col 2"
width={500}
dataKey={1}
/>
</Table>,
document.getElementById('table')
);