Q1 | What is the main difference between functional components and class components in React? | |
---|
Q2 | What are the three main categories of lifecycle methods in a React component? | |
---|
Q3 | How can you update the state in React? | |
---|
Q4 | What is the use of state in React? | |
---|
Q5 | How can prop drilling be mitigated in a React application? | |
---|
Q6 | What is prop drilling in React? | |
---|
Q7 | How can you access the value of a prop in a React component? | |
---|
Q8 | What is the purpose of using props in React? | |
---|
Q9 | When should you use functional components instead of class components in React? | |
---|
Q10 | How do components enhance the reusability of code in React applications? | |
---|
Q11 | What is the role of components in building React applications? | |
---|
Q12 | How is component-based architecture beneficial in React development? | |
---|
Q13 | What is component-based architecture in React? | |
---|
Q14 | What is React? | |
---|
Q15 | How is JSX different from regular HTML syntax? | |
---|
Q16 | What is the purpose of the virtual DOM in React? | |
---|
Q17 | What does JSX stand for in the context of React? | |
---|
Q18 | What is the virtual DOM in React? | |
---|
Q19 | What is the purpose of the componentDidMount lifecycle method in a React component? | |
---|
Q20 | What is a component in React? | |
---|
Q21 | Which of the following is true about the useState() hook in React? | |
---|
Q22 | What does the useState() hook do in React? | |
---|
Q23 | In which situation would you use the empty dependency array in the useEffect() hook? | |
---|
Q24 | What is the purpose of the useEffect() hook in React? | |
---|
Q25 | What is the useState() hook used for in React? | |
---|
Q26 | What are hooks in React used for? | |
---|
Q27 | How can React Router handle dynamic routing? | |
---|
Q28 | What is React Router used for? | |
---|
Q29 | How can conditional rendering be used to display different components based on certain conditio... | |
---|
Q30 | How do you pass arguments to an event handler in React? | |
---|
Q31 | What is conditional rendering used for in React? | |
---|
Q32 | What is the purpose of using event handlers in React? | |
---|