Which method is called when a component is first added to the DOM?
What is the purpose of the 'key' prop in React?
What is the purpose of prop-types library?
Which method is used to handle lifecycle events in a class component?
What is the purpose of render props in React?
In React, what is the purpose of the 'shouldComponentUpdate' method?
Which of the following is NOT a valid way to define a component in React?
What is the purpose of the 'dangerouslySetInnerHTML' attribute in React?
How do you connect a React component to the Redux store?
What is the purpose of ReactDOM?
What is the purpose of PropTypes in React?
What is the purpose of StrictMode in React?
What is the difference between props and state in React?
In React, what is the purpose of the 'useReducer' Hook?
What is the purpose of the 'useCallback' Hook in React?
What is the purpose of React.Fragment?
In React.js, what is used to pass data to a component from outside?
What is the purpose of the 'ref' attribute in React?
Which of the following methods is used to perform side effects in React?
How do you handle errors in React components?
How do you update state in a functional component?
In React, how can you conditionally render components?
Which of the following methods is called after the component is rendered in React?
How do you share state between components?
What is the purpose of the 'ErrorBoundary' component in React?
How do you handle events in React?
What does the useEffect hook do?
How do you create a class component in React?
What is JSX?
What is the purpose of the 'useContext' Hook in React?
Do you wish to submit the exam or resume later?
Do you wish to save your choice
Your exam is submitted successfully