I guess you’re trying to write bindings to TanStack.
Yes. The binding work is making me regret my choice.
Your solution works at first sight. I will test it out further when I get time.
I guess the columnDefs will be consumed by JS and not by ReScript,
As far as I remember, one of the Tanstack Table APIs would require me to access columnDef on ReScript side. I think its flexRender. I would have to test how the solution pans out in that case.