From 80ceeee83f24bf87e7f4b6df40ea689b0042cfed Mon Sep 17 00:00:00 2001 From: Michael Li Date: Tue, 17 Dec 2019 21:52:39 -0600 Subject: [PATCH] Update useTable.md (#1788) --- docs/api/useTable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/useTable.md b/docs/api/useTable.md index afffe70..129b706 100644 --- a/docs/api/useTable.md +++ b/docs/api/useTable.md @@ -25,7 +25,7 @@ The following options are supported via the main options object passed to `useTa - Optional - The initial state object for hidden columns - If a column's ID is contained in this array, it will be hidden -- `reducer: Function(newState, action, prevState) => newState` +- `stateReducer: Function(newState, action, prevState) => newState` - Optional - With every action that is dispatched to the table's internal `React.useReducer` instance, this reducer is called and is allowed to modify the final state object for updating. - It is passed the `newState`, `action`, and `prevState` and is expected to either return the `newState` or a modified version of the `newState`