Backend Engineering, Frontend Engineering
Senior
programming
Which of the following methods is NOT a way to manage state in React components?
A) useState
B) useReducer
C) useContext
D) useProp
```
## Approach
useState, useReducer, and useContext are all standard hooks for managing state in React, while useProp isn't a valid React hook.
## Complexity
**Time:** O(...) (depends on specific implementation)
**Space:** O(...) (depends on the state size)
## Trade-offs
- Understanding the right hook to use based on the complexity of the state is crucial.
```
Trusted by 100+ professionals preparing for interviews
Trusted by 100+ professionals
50+ Company Question Banks
5+ Supported Languages
Practice More Questions Like This
Generate unlimited interview questions with structured answers, code runner, and AI-powered walkthroughs.
Get Started Free
More Backend Engineering, Frontend Engineering Interview Prep
In React, what is the purpose of the useEffect hook?
Backend Engineering, Frontend Engineering · Senior
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.