diff --git a/src/exercise/02.md b/src/exercise/02.md index dc85e855..d8155745 100644 --- a/src/exercise/02.md +++ b/src/exercise/02.md @@ -96,7 +96,7 @@ Unfortunately, the ESLint plugin is unable to determine whether the and normally I'd say just ignore it and move on. But, there's another solution to this problem which I think is probably better. -Instead, of accepting `dependencies` to `useAsync`, why don't we just treat the +Instead of accepting `dependencies` to `useAsync`, why don't we just treat the `asyncCallback` as a dependency? Any time `asyncCallback` changes, we know that we should call it again. The problem is that because our `asyncCallback` depends on the `pokemonName` which comes from props, it has to be defined within the