React Table Editable example issue + paid help

I am not able to follow the example (https://tanstack.com/table/v8/docs/examples/react/editable-data) since it says I cannot use useState and useEffect as has been shown in the defaultColumn declaration.

Feel like I am missing something simple here. This is the error I am getting -
React Hook "React.useState" is called in function "cell" that is neither a React function component nor a custom React Hook function.

Also, has anyone made more complex editable tables? I wanted to make ones where you can
1) add as many rows and columns as you want
2) have column types - date, select, text and number.

I am happy to pay decently well for someone's time if they can help out.
An example showing how to implement Editable Data in React Table
React Table Editable Data Example | TanStack Table Docs
Was this page helpful?