Explanation: Effect runs again only if dependencies change.
Dear candidates you will find MCQ questions of React Js here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Explanation: Effect runs again only if dependencies change.
Explanation: React.memo memoizes functional components.
Explanation: PureComponent avoids re-renders if props/state do not change shallowly.
Explanation: Error boundaries catch rendering errors and display fallback UI.
Explanation: useReducer is similar to Redux reducers but for local state.
Explanation: Cleanup helps avoid memory leaks and stale subscriptions.
Explanation: This command scaffolds a new React project.
Explanation: children lets components render nested content dynamically.