1. What is useState ? Junior A. the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter B. the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function C. the read-only inputs passed from a parent down to a child component to configure its appearance and behavior D. the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates Reveal the answer + AI explanation — free account
2. Which term means: "the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter"? Junior A. useEffect B. useContext C. useState D. useCallback Reveal the answer + AI explanation — free account
3. Which statement is correct? Junior A. useState — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter B. useState — the read-only inputs passed from a parent down to a child component to configure its appearance and behavior C. useState — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component D. useState — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function Reveal the answer + AI explanation — free account
4. What is useEffect ? Mid A. the read-only inputs passed from a parent down to a child component to configure its appearance and behavior B. the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates C. the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component D. the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function Reveal the answer + AI explanation — free account
5. Which term means: "the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function"? Mid A. useContext B. props C. useCallback D. useEffect Reveal the answer + AI explanation — free account
6. Which statement is correct? Mid A. useEffect — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component B. useEffect — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter C. useEffect — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function D. useEffect — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates Reveal the answer + AI explanation — free account
7. What is props ? Junior A. the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates B. the read-only inputs passed from a parent down to a child component to configure its appearance and behavior C. the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function D. the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component Reveal the answer + AI explanation — free account
8. Which term means: "the read-only inputs passed from a parent down to a child component to configure its appearance and behavior"? Junior A. useEffect B. props C. useState D. useContext Reveal the answer + AI explanation — free account
9. Which statement is correct? Junior A. props — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates B. props — the read-only inputs passed from a parent down to a child component to configure its appearance and behavior C. props — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function D. props — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter Reveal the answer + AI explanation — free account
10. What is useContext ? Mid A. the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function B. the read-only inputs passed from a parent down to a child component to configure its appearance and behavior C. the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter D. the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component Reveal the answer + AI explanation — free account
11. Which term means: "the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component"? Mid A. props B. useCallback C. useState D. useContext Reveal the answer + AI explanation — free account
12. Which statement is correct? Mid A. useContext — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter B. useContext — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component C. useContext — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates D. useContext — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function Reveal the answer + AI explanation — free account
13. What is useCallback ? Senior A. the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function B. the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates C. the read-only inputs passed from a parent down to a child component to configure its appearance and behavior D. the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component Reveal the answer + AI explanation — free account
14. Which term means: "the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates"? Senior A. useState B. useCallback C. useEffect D. useContext Reveal the answer + AI explanation — free account
15. Which statement is correct? Senior A. useCallback — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter B. useCallback — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates C. useCallback — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component D. useCallback — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function Reveal the answer + AI explanation — free account