91. What is React component composition?
Answer:Combining multiple components
92. In React, how can you include one component within another component's JSX?
Answer:By using the import statement
93. What is the primary benefit of component composition in React?
Answer:Reusability of components
94. In React, what is a higher-order component (HOC)?
Answer:A component that returns another component
95. How do you pass data from a parent component to a child component in React?
Answer:By using props
96. In React, what is the purpose of the children prop?
Answer:To render child elements
97. What is the recommended way to control the rendering of child components in React?
Answer:By using conditional rendering
98. Which React concept allows you to create reusable UI elements that accept their structure as props?
Answer:Higher-order components (HOCs)
99. In React, what is the purpose of the key prop when rendering a list of components?
Answer:To define a unique identifier
100. How can you conditionally render one component or another in React based on a condition?