Hacker News new | past | comments | ask | show | jobs | submit login

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.




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?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: