leops / react-jumpgate

Renderer-Agnostic portals for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request - Consumer should provide a default component

msanchez-eutech opened this issue · comments

Current behavior:

  • When there is no provider, nothing is rendered

Desired behavior:

  • The consumer can define a default component to render when there is no provider

It would allow to use jumpgates as a way to provide default layouts that CAN be customized with a Provider but don't HAVE to.

The implementation could be to use the children of Consumer as default children.