Here I have code of react table using hooks, and i have struggled on task where I need to set all rows and subrows expanded by default when i open the page, I have tried several solutions, but all of them didn't work.
Link to the code : https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/expanding
react-table
has an optioninitialState.expanded
to pass touseTable
. github.com/tannerlinsley/react-table/blob/… – Adallard