Hacker News new | ask | show | jobs
by andrewingram 3150 days ago
This is how the technique was first popularised by Cheng Lou in react-motion. But it was generally found that using children made it really inaccessible to people unfamiliar with the pattern.

I've literally had good developers not understand them until I switched an example from using children to using a render prop, at which point there's a big light bulb moment.

So i'll be sticking with the render prop.

1 comments

Maybe you could clarify it for your good developers by giving the example with children passed as a prop. Then they'll learn two things!
What's the point? Given that I prefer the aesthetics of the render prop as well?