diff --git a/src/data/question-groups/react/react.md b/src/data/question-groups/react/react.md index df8d4fe0a..0a6c2b1fd 100644 --- a/src/data/question-groups/react/react.md +++ b/src/data/question-groups/react/react.md @@ -272,4 +272,9 @@ questions: topics: - 'Core' - 'Beginner' + - question: What is a dependency array in React? + answer: In React, a dependency array is commonly used with the `useEffect`, `useMemo`, and `useCallback` hooks to specify the dependencies of the hook. The hook will only be executed or re-executed if the dependencies have changed since the last render. + topics: + - 'Core' + - 'Beginner' ---