I am learning React, and have a very simple React application. When I follow the Getting Started steps for the Grid, I immediately get these errors when I add the <Grid> element to my application.
TS2786: 'Grid' cannot be used as a JSX component. Its instance type 'Grid' is not a valid JSX element.
Type 'Grid' is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, and 2 more.
TS2607: JSX element class does not support attributes because it does not have a 'props' property.
import React from 'react';
import { Grid, GridColumn } from "@progress/kendo-react-grid";
const App: React.FC = () => {
return (
<Grid data={products}>
<GridColumn field="ProductName" />
<GridColumn field="UnitPrice" />
<GridColumn field="UnitsInStock" />
<GridColumn field="Discontinued" />
</Grid>
);
}
export default App;