test extra column
@@ -10,6 +10,10 @@ const cellRenderer = (rowIndex: number) => {
return <Cell>{`$${(rowIndex * 10).toFixed(2)}`}</Cell>
};
+const cellRenderer2 = (rowIndex: number) => {
+ return <Cell>{`$${(rowIndex * 100).toFixed(2)}`}</Cell>
+};
+
const app = document.getElementById('app') as HTMLDivElement
const root = document.createElement('div')
@@ -18,6 +22,7 @@ app.append(root)
ReactDOM.render(
<Table numRows={10}>
<Column name="Dollars" cellRenderer={cellRenderer} />
+ <Column name="Dollars2" cellRenderer={cellRenderer2} />
</Table>,
root
);
