Node.js React: Can't add property context, object is not extensible
By adding a react.createFactory()
call around griddle-react
, you signify that you are going to use plain JavaScript instead of JSX. Thus, you need to use a JavaScript function for Griddle in the subsequent render function:
return Griddle({results: fakeData, columnMetadata: columnMeta, resultsPerPage: resultsPerPage, tableClassName: "table"});
If you would like to use the JSX syntax that you already have, simply require griddle-react
without the React.createFactory()
call.