8.
What is the purpose of using props in React?
To pass data from parent components to child components
To share data between sibling components
To enable communication between components
To control the flow of data within a component
Correct: A, B
Props are used to pass data from parent components to child components and to share data between sibling components. By passing props, we can communicate and control the flow of data within a component tree.