Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const stateData = (this.state as any)[stateKey] as { [key: string]: T };
const values = { ...stateData, [dataKey]: value };
this.setState({ [stateKey]: values } as any);
}
}
ReactDOM.render(, document.getElementById("table-editable-names"));
ReactDOM.render(
getTableComponent(
2,
2,
{},
{
enableGhostCells: true,
selectionModes: SelectionModes.ALL,
},
),
document.getElementById("table-ghost"),
);
ReactDOM.render(
getTableComponent(
2,
2,
{},
{
enableGhostCells: true,
selectionModes: SelectionModes.ALL,
},
),
document.getElementById("table-inline-ghost"),
{
enableGhostCells: true,
selectionModes: SelectionModes.ALL,
},
),
document.getElementById("table-inline-ghost"),
);
ReactDOM.render(
getTableComponent(
200,
100 * 1000,
{},
{
enableGhostCells: true,
selectionModes: SelectionModes.ALL,
},
),
document.getElementById("table-big"),
);
class RowSelectableTable extends React.Component<{}, {}> {
public state = {
selectedRegions: [Regions.row(2)],
};
public render() {
return (
<div>
</div>