is the use of columnHelper mandatory?
I am thinking of migrating my project from using v7 to v8, and saw that in the
column defs section in the docs you mentioned the use of a columnHelper instance to create the different types of columns, but you didn't use it in the react examples.
so my question is - if I migrate to v8, will my existing tables work or will I have to rewrite all of them?3 Replies
rival-black•3y ago
From what I have gathered and witnessed Tanner himself saying,
columnHelper is the preferred way of defining your columns.
The V7 definition works fine too, however you may encounter some TypeScript issues along the way with this format.
Hope this helps.quickest-silver•3y ago
You will have to change some things. For example
Header-> header, Cell .> cell the keys in your column definitions.
the columnHelper give you excelent typescript support since it infers types from what you set as accessor and so on.
I just migrated from v7 to v8 a few days ago actually and I used the columnHelper. It works like a charm.rare-sapphire•3y ago
Seems weird that the Expanded example doesnt use the columnHelper then