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

Expose React Component Function as Web Component Function #33

Closed
fabiofranzini opened this issue Sep 17, 2018 · 5 comments
Closed

Expose React Component Function as Web Component Function #33

fabiofranzini opened this issue Sep 17, 2018 · 5 comments

Comments

@fabiofranzini
Copy link

Is there a way to be able to map in addition to properties and events also functions to invoke?
I have to expose the functions of the React Components as the functions of the Web Components
Thank you!

@ChristophP
Copy link
Owner

Hi @fabiofranzini ,

I don't understand your question. Can you clarify your question a bit more and maybe provide an example?

@fabiofranzini
Copy link
Author

fabiofranzini commented Oct 11, 2018

Hi @ChristophP ,
I want to map React component's function to WebComponent's function.
Example, if I have a React component with a function like "focus()", I'm not able to map "focus()" as a function in WebComponent.

@fabiofranzini
Copy link
Author

Any news?

@etylsarin
Copy link

I'm looking for the same thing

@ChristophP
Copy link
Owner

Hi, sorry for the long inactivity and thanks for the explanation @fabiofranzini .
I see, you need to call function on the web component instance that delegate to the React component. I am planning a pass over this lib since it's been a while since the last release.
I will add that issue to the list of things I am planning to address. Can't really put a date on it right now but I am aiming for sometime in the remainder of 2019.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants