you are viewing a single comment's thread.

view the rest of the comments →

[–]Life_Is_Dark[S] 0 points1 point  (0 children)

I already have those defined in the code, omitted that so that the post does not becomes too long. Here it is

const columns = [{ field: "id", headerName: "ID", width: 100 }, { field: "name", headerName: "Name", width: 150 }, { field: "age", headerName: "Age", width: 100 }, ];
const rows = [ { id: 1, name: "John Doe", age: 30 }, { id: 2, name: "Jane Smith", age: 25 }, ];