Correct typo

This commit is contained in:
Dimitrijus Stepanov
2019-09-07 15:15:43 +03:00
committed by GitHub
parent ffa3272082
commit bf181997fd

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