Render Props in React

added by JavaScript Kicks
7/20/2018 7:20:37 AM

529 Views

First, what is a render prop (RP)? A RP is simply a prop that takes a function which returns elements that will be used in render(). You can pass an element directly into a prop and use it in render() which would make the whole thing a RP by name, but generally, when people speak about RPs, they mean the first definition.


0 comments