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

Not a fan at all. First I'm not convinced by render props: it allows factorization, but I'd rather have the "wrapping" happen outside of the component (like the HoC pattern does) than inside the render().

But even more: this could be useful for connect()ing different parts of your component independently, but having this need is a huge hint that you should split your component.




I agree with you, this is in no way clearer than exporting a connected component, in fact I find it harder to parse. Really, I don't see any advantage in doing things this way.




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

Search: