refer: https://handsontable.com/docs/react-data-grid/installation/

在线demo: https://jsfiddle.net/api/post/library/pure/

使用headsontable的时候,会出现header,

<HotTable
data={[
['', 'Tesla', 'Volvo', 'Toyota', 'Ford'],
['2019', 10, 11, 12, 13],
['2020', 20, 11, 14, 13],
['2021', 30, 15, 12, 13]
]}
rowHeaders={true}
={true}
height="auto"
licenseKey="non-commercial-and-evaluation" // for non-commercial use only
/>

默认情况下是显示headers的,如果不想要显示,那么就把

rowHeaders
 
colHeaders
修改为false即可。
data可以设置默认的数据。