From cbcab295899defbcaf6c259b24c39f0175e3d532 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Wed, 20 Sep 2023 06:34:58 +0600 Subject: [PATCH] wip: add dependency array question --- src/data/question-groups/react/react.md | 5 +++++ 1 file changed, 5 insertions(+) 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' ---