pager.jsx
); I would recommend creating constants for pageIndex
, pageSize
, and making dataSource
a utility that you can import. Since sort
and filterFields
can be managed as external state variables, there's not an awesome way to get those incorporated as props without the user explicitly passing them.
stateKey
and pageSize
as default props to the custom component.
pageIndex
will probably need to be managed by your custom component, since that behavior will no longer be triggered by the default grid pager.
pageSize
, pageIndex
, and perhaps dataSource
.