Skip to content

Commit e4eec7b

Browse files
committed
correcting spelling mistakes
1 parent 9a7facd commit e4eec7b

8 files changed

+8
-8
lines changed

docs/Lifecycles.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Lifecycle
22

3-
*"Lifecycle Hooks"* modify and extend built-in React hooks or immitate React Class component lifecycle patterns.
3+
*"Lifecycle Hooks"* modify and extend built-in React hooks or imitate React Class component lifecycle patterns.

docs/createReducer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `createReducer`
22

3-
Factory for reducer hooks with custom middleware with an identical API as [React's `useReducer`](https://reactjs.org/docs/hooks-reference.html#usereducer). Compatible with [Redux middlware](https://redux.js.org/advanced/middleware).
3+
Factory for reducer hooks with custom middleware with an identical API as [React's `useReducer`](https://reactjs.org/docs/hooks-reference.html#usereducer). Compatible with [Redux middleware](https://redux.js.org/advanced/middleware).
44

55
## Usage
66

docs/useCopyToClipboard.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ const [{value, error, noUserInteraction}, copyToClipboard] = useCopyToClipboard(
2828
```
2929

3030
- `value` — value that was copied to clipboard, undefined when nothing was copied.
31-
- `error` — catched error when trying to copy to clipboard.
31+
- `error` — caught error when trying to copy to clipboard.
3232
- `noUserInteraction` — boolean indicating if user interaction was required to copy the value to clipboard to expose full API from underlying [`copy-to-clipboard`](https://github.com/sudodoki/copy-to-clipboard) library.

docs/useKeyPressEvent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `useKeyPressEvent`
22

3-
This hook fires `keydown` and `keyup` calllbacks, similar to how [`useKey`](./useKey.md)
3+
This hook fires `keydown` and `keyup` callbacks, similar to how [`useKey`](./useKey.md)
44
hook does, but it only triggers each callback once per press cycle. For example,
55
if you press and hold a key, it will fire `keydown` callback only once.
66

docs/useMultiStateValidator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ const [validity, revalidate] = useStateValidator(
5050
- **`validity`**_`: [boolean|null, ...any[]]`_ result of validity check. First element is strictly nullable boolean, but others can contain arbitrary data;
5151
- **`revalidate`**_`: ()=>void`_ runs validator once again
5252
- **`validator`**_`: (state, setValidity?)=>[boolean|null, ...any[]]`_ should return an array suitable for validity state described above;
53-
- `states` - current states values as the've been passed to the hook;
53+
- `states` - current states values as they've been passed to the hook;
5454
- `setValidity` - if defined hook will not trigger validity change automatically. Useful for async validators;
5555
- `initialValidity` - validity value which set when validity is nt calculated yet;

docs/useRendersCount.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `useRendersCount`
22

3-
Tracks compontent's renders count including the first render.
3+
Tracks component's renders count including the first render.
44

55
## Usage
66

docs/useStateList.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Demo = () => {
4141
const { state, currentIndex, prev, next, setStateAt, setState } = useStateList<T>(stateSet: T[] = []);
4242
```
4343

44-
If `stateSet` changed, became shorter than before and `currentIndex` left in shrinked gap - the last element of list will be taken as current.
44+
If `stateSet` changed, became shorter than before and `currentIndex` left in shrunk gap - the last element of list will be taken as current.
4545

4646
- **`state`**_`: T`_ &mdash; current state value;
4747
- **`currentIndex`**_`: number`_ &mdash; current state index;

tests/useLocalStorage.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ it('should return initialValue if localStorage empty and set that to localStorag
3434
expect(localStorage.__STORE__[key]).toBe(`"${value}"`);
3535
});
3636

37-
it('should return the value from localStorage if exists even if initialValue provied', () => {
37+
it('should return the value from localStorage if exists even if initialValue provided', () => {
3838
const key = 'some_key';
3939
localStorage.setItem(key, STRINGIFIED_VALUE);
4040

0 commit comments

Comments
 (0)