wip: add dependency array question

feat/questions
Arik Chakma 1 year ago
parent 7f1330f6a2
commit cbcab29589
  1. 5
      src/data/question-groups/react/react.md

@ -272,4 +272,9 @@ questions:
topics: topics:
- 'Core' - 'Core'
- 'Beginner' - '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'
--- ---

Loading…
Cancel
Save