Skip to content
New issue

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

Support content elements in React adapter #19379

Closed
platosha opened this issue May 15, 2024 · 0 comments · Fixed by #19434
Closed

Support content elements in React adapter #19379

platosha opened this issue May 15, 2024 · 0 comments · Fixed by #19434
Labels
hilla Issues related to Hilla

Comments

@platosha
Copy link
Contributor

Add support for adding Flow components as children to ReactAdapterComponent.

Implementation idea:

  • add useContent(name: string) ReactAdapterElement hook, supports rendering a DOM placeholder in React
  • add the corresponding protected Element getContentElement(String name) Java ReactAdapterComponent method, that creates and returns the named container element.

Prototype: https://github.com/vaadin/flow-hilla-hybrid-example/tree/proto/flow-react-children

The first implementation could use two DOM wrapper elements, each with style "display: contents;".

@platosha platosha added the hilla Issues related to Hilla label May 15, 2024
@caalador caalador self-assigned this May 21, 2024
caalador added a commit that referenced this issue May 23, 2024
Add support for having Flow Components
as children in a ReactAdapoterComponent

Fixes #19379
caalador added a commit that referenced this issue Jun 4, 2024
Add support for having Flow Components
as children in a ReactAdapoterComponent

Fixes #19379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hilla Issues related to Hilla
Projects
Status: September 2024 (24.5)
Development

Successfully merging a pull request may close this issue.

2 participants