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

Declare render functions #35

Closed
rpiaggio opened this issue Apr 24, 2018 · 2 comments
Closed

Declare render functions #35

rpiaggio opened this issue Apr 24, 2018 · 2 comments

Comments

@rpiaggio
Copy link
Contributor

First of all, thank you for this great library!

I am trying to use it to declare a facade for https://github.com/moroshko/react-autosuggest. One of the properties of this component (renderSuggestion) is a render function, which should return a React component. I tried declaring it as a function (...) => CallbackTo[VdomNode], but when I do this I get a compilation error: value toJs is not a member of <notype> on the autoNoChildren macro.

Is this functionality supported? If so, how should I declare this property?

Thank you!

@ramnivas
Copy link
Contributor

Welcome!

I think you need to declare the function as (...) => VdomElement.

@rpiaggio
Copy link
Contributor Author

Thank you @ramnivas , that works!

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

No branches or pull requests

2 participants