- Message:
Component "Header" is declared during render. You should move this declaration outside of render to ensure this component's state is persisted across re-renders of its parent. If this component is memoized, you should still refactor the component to be able to move it outside of render. If you want to reset its state use a key instead (see https://reactjs.org/docs/lists-and-keys.html#keys).
- Path:
tannerlinsley/react-table/old-examples/expanding/src/App.js
- Link
90 | // Build our expander column
91 | id: 'expander', // Make sure it has an ID
> 92 | Header: ({ getToggleAllRowsExpandedProps, isAllRowsExpanded }) => (