document-picture-in-picture icon indicating copy to clipboard operation
document-picture-in-picture copied to clipboard

React components support?

Open mmarzullotv opened this issue 1 year ago • 1 comments

Hey guys, I need to create a specific custom Layout UI for the PiP window with React custom components, along with their business logic from hooks, state control and their styles. But I can't seem to find a proper way to do it. Is this even supported by now?

When I tried to move a button element wrapper from parent document to children window, that had event listeners attached to it such as onClick, the event got lost in the process. All the logic behind it as well for like switching visibility or controlled rendering based on some component state. It even replaced it for "null" for a different state rendering in the button. (Simple "Play" | "Pause" button element switching)

Any help related to this matter would be greatly appreciated. Keep up the good work!

mmarzullotv avatar Jun 23 '23 15:06 mmarzullotv