We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What about adding the support for function children so codes below can be valid
<Portal openByClickOn ={<a>test</a>}>{(closePortal) => ( <Modal> {/*some content*/} <button onClick={closePortal()}>close me</button> </Modal> )}</Portal>
I could just inline the portal content without creating a component class / stateless functional comp to use the closePortal
closePortal
The text was updated successfully, but these errors were encountered:
Yes. This is a great pattern and I will use it in v4.
Sorry, something went wrong.
Used in #157
No branches or pull requests
What about adding the support for function children so codes below can be valid
I could just inline the portal content without creating a component class / stateless functional comp to use the
closePortal
The text was updated successfully, but these errors were encountered: