pedronauck/react-adopt

Support custom render methods

pedronauck opened this issue · 0 comments

Some render props components don't use children props to render, so it's necessary to support some other methods to render in that case.

I possible change is make api support a function that will render component:

const Composed = adopt({
  foo: ({ children }) => <Foo render={children} />
})

This can be really good for the lazy evaluation too!