Skip to content Skip to sidebar Skip to footer

Pass Array From Graphql Query To React-table

I am trying to take the array output of a GraphQL query and render it using React-Table but I am getting a Cannot read property 'forEach' of undefined error. The only other questio

Solution 1:

Your syntax for react table is wrong, it should be something like this

<ReactTable
  data={data.getTemplates}
  columns={columns}
  defaultPageSize={10}
/>

Post a Comment for "Pass Array From Graphql Query To React-table"