Making Sense of React's Render Props
React's render props is easy if you understand FP
I came across render props when checking out Apollo GraphQL’s tutorial. Now I think I finally figured it out, I try my best to explain it as easy as possible here in my own words. The highlight is in the last part where I shed a FP light onto it. So stay tuned! First, stop trying to understand the name render props. Instead, look at the following example. I want to build a React Component which has 2 buttons cat and dog.