Hacker News new | ask | show | jobs
by williamdclt 3181 days ago
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.

1 comments

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.