From 1963c8cd4aa1c0152749a595e70851e1e1a62263 Mon Sep 17 00:00:00 2001 From: Dimitrijus Stepanov <40516701+dimitrijuss@users.noreply.github.com> Date: Fri, 6 Sep 2019 22:26:12 +0300 Subject: [PATCH 1/3] Fix typo in Readme Change `Rect.useEffect()` to `React.useEffect()` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58fb3148e..5f57bbf10 100644 --- a/README.md +++ b/README.md @@ -420,7 +420,7 @@ A hook that implements `setInterval` in a declarative manner. - Create a custom hook that takes a `callback` and a `delay`. - Use the `React.useRef()` hook to create a `ref` for the callback function. - Use the `React.useEffect()` hook to remember the latest callback. -- Use the `Rect.useEffect()` hook to set up the interval and clean up. +- Use the `React.useEffect()` hook to set up the interval and clean up. ```jsx const useInterval = (callback, delay) => { @@ -529,7 +529,7 @@ A hook that implements `setTimeout` in a declarative manner. - Create a custom hook that takes a `callback` and a `delay`. - Use the `React.useRef()` hook to create a `ref` for the callback function. - Use the `React.useEffect()` hook to remember the latest callback. -- Use the `Rect.useEffect()` hook to set up the timeout and clean up. +- Use the `React.useEffect()` hook to set up the timeout and clean up. ```jsx const useTimeout = (callback, delay) => { From ffa32720820108d49d65c13d52a1a0e613e3de71 Mon Sep 17 00:00:00 2001 From: Dimitrijus Stepanov <40516701+dimitrijuss@users.noreply.github.com> Date: Sat, 7 Sep 2019 15:15:17 +0300 Subject: [PATCH 2/3] Correct typo --- snippets/useTimeout.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/useTimeout.md b/snippets/useTimeout.md index d5c240178..444d57c73 100644 --- a/snippets/useTimeout.md +++ b/snippets/useTimeout.md @@ -8,7 +8,7 @@ A hook that implements `setTimeout` in a declarative manner. - Create a custom hook that takes a `callback` and a `delay`. - Use the `React.useRef()` hook to create a `ref` for the callback function. - Use the `React.useEffect()` hook to remember the latest callback. -- Use the `Rect.useEffect()` hook to set up the timeout and clean up. +- Use the `React.useEffect()` hook to set up the timeout and clean up. ```jsx const useTimeout = (callback, delay) => { From bf181997fd6e47cceed8a06425ea9cd5c28bb7e0 Mon Sep 17 00:00:00 2001 From: Dimitrijus Stepanov <40516701+dimitrijuss@users.noreply.github.com> Date: Sat, 7 Sep 2019 15:15:43 +0300 Subject: [PATCH 3/3] Correct typo --- snippets/useInterval.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/useInterval.md b/snippets/useInterval.md index 4db4e2cd2..814dbd5ce 100644 --- a/snippets/useInterval.md +++ b/snippets/useInterval.md @@ -8,7 +8,7 @@ A hook that implements `setInterval` in a declarative manner. - Create a custom hook that takes a `callback` and a `delay`. - Use the `React.useRef()` hook to create a `ref` for the callback function. - Use the `React.useEffect()` hook to remember the latest callback. -- Use the `Rect.useEffect()` hook to set up the interval and clean up. +- Use the `React.useEffect()` hook to set up the interval and clean up. ```jsx const useInterval = (callback, delay) => {