Great article! However, in the explanation of the useFetch custom hook, I think that there is a mistake in the third code snippet. You used isMounted variable in a if check, but it is not defined anywhere else. Either I am not seeing it or you have forgot to initialize it first.
thanks :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article! However, in the explanation of the useFetch custom hook, I think that there is a mistake in the third code snippet. You used isMounted variable in a if check, but it is not defined anywhere else. Either I am not seeing it or you have forgot to initialize it first.
thanks :)