renatorib / react-powerplug

:electric_plug: [Unmaintained] Renderless Containers

Home Page:https://renatorib.github.io/react-powerplug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: The prop `children` is marked as required

sandiiarov opened this issue · comments

When I try to compose components with PropTypes.children.isRequired then I see this annoying warning.

screen shot 2018-08-05 at 8 36 36 pm

The temporary solution is not looking good:

<Compose
    components={[
        <Query query={QUERY} children={() => {}} />,
        <Mutation mutation={MUTATION} children={() => {}} />,
    ]}
>