Web / ReactJS Interview questions
What is "Render Props" pattern/technique in React?
The term "render prop" refers to a technique for sharing code between React components using a prop whose value is a function.
A component with a render prop takes a function that returns a React element and calls it instead of implementing its own render logic.
<UserProfile render={userData => ( <h1>Hello {userData.name}</h1> )}/>
More Related questions...