Question Bank
3705 approved questions from the community
What is the purpose of the key attribute in React lists?
What is the primary difference between controlled and uncontrolled components?
Which method is used to create a context in React?
What happens if you omit the dependency array in useEffect?
What happens when you call setState() multiple times in the same synchronous code block?
What is the primary purpose of React.createElement()?
After calling a `useState` setter, what should you expect?
React Suspense is mainly used to:
What did React Fiber primarily unlock?
React composition encourages developers to:
Best default strategy for choosing state location is:
Why might SSR improve perceived performance?
Which of the following are valid ways to conditionally render components in React? (Select all that apply)
Which of the following are benefits of using the Virtual DOM? (Select all that apply)
Which of the following are valid use cases for useRef? (Select all that apply)
Which of the following are valid ways to optimize React performance? (Select all that apply)
Which of the following are part of the React component lifecycle? (Select all that apply)
Which of the following are advantages of using React? (Select all that apply)
Which statements about Error Boundaries are correct? (Select all that apply)
Which rules does the diffing algorithm follow? (Select all that apply)