From f06895d9d57496eca1cd2f37bdc1e3913cbdd28c Mon Sep 17 00:00:00 2001 From: Guillaume L <6996668+glarivie@users.noreply.github.com> Date: Mon, 27 Jan 2020 15:46:37 +0100 Subject: [PATCH] [FIX] typo in useStateList.md (#923) `nexct` --> `next` --- docs/useStateList.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/useStateList.md b/docs/useStateList.md index 5d1fa278..82158dcd 100644 --- a/docs/useStateList.md +++ b/docs/useStateList.md @@ -46,7 +46,7 @@ If `stateSet` changed, became shorter than before and `currentIndex` left in shr - **`state`**_`: T`_ — current state value; - **`currentIndex`**_`: number`_ — current state index; - **`prev()`**_`: void`_ — switches state to the previous one. If first element selected it will switch to the last one; -- **`nexct()`**_`: void`_ — switches state to the next one. If last element selected it will switch to the first one; +- **`next()`**_`: void`_ — switches state to the next one. If last element selected it will switch to the first one; - **`setStateAt(newIndex: number)`**_`: void`_ — set the arbitrary state by index. Indexes are looped, and can be negative. _4ex:_ if list contains 5 elements, attempt to set index 9 will bring use to the 5th element, in case of negative index it will start counting from the right, so -17 will bring us to the 4th element. - **`setState(state: T)`**_`: void`_ — set the arbitrary state value that exists in `stateSet`. _In case new state does not exists in `stateSet` an Error will be thrown._