Replies: 1 comment
-
title2 on rows is missing const rows = [
{ id: 0, title: "Example", title2: "my title 2" },
{ id: 1, title: "Demo", title2: "my title 2 again" },
{ id: 2, title: "Demo", title2: "my title 2 :) " },
{ id: 3, title: "Demo" , title2: "my ...... "},
{ id: 4, title: "Demo" , title2: "just my title 2"},
]; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code, it should show 3 columns, but only the first two are displayed. Any ideas, why the third is not shown?
`import React from "react";
import "./App.css";
import DataGrid from "react-data-grid";
const columns = [
{ key: "id", name: "ID" },
{ key: "title", name: "Title" },
{ key: "title2", name: "Title2" },
];
const rows = [
{ id: 0, title: "Example" },
{ id: 1, title: "Demo" },
{ id: 2, title: "Demo" },
{ id: 3, title: "Demo" },
{ id: 4, title: "Demo" },
];
function App() {
return (
;
);
}
export default App;
`
Beta Was this translation helpful? Give feedback.
All reactions