Merge pull request #72 from dimitrijuss/patch-1

[FIX] Typo in Readme
This commit is contained in:
Stefan Feješ
2019-09-07 19:28:18 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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) => {