-
Notifications
You must be signed in to change notification settings - Fork 5
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
Props return strings #14
Comments
related |
Hopefully the hack works alright for your purposes. :) I dont think there is anything else we would want to do from (I stopped using hyperx because the apparent lack of maintenance and because the trickery to get a production build, which is why this package has gone kind of dormant, but I digress) |
Yeah it works for most use cases. A big downside is that Do you know if there are better alternatives to hyperx? Maybe the template string parser can be rethought / improved in another lib. |
I'm currently using hyperapp with good ol' I'm not aware of any alternatives to
I suggest |
Thanks for the reply @jamen -- points well taken. I agree with what you're saying. I still like having a template string option for small projects with snabbdom. It might be worth putting these "gotchas" in the readme |
If I do the following, my input will be disabled:
Notice it sets disabled to the
"false"
string, which is truthy, so I am unexpectedly disabled.However, if I use an overall
@props=${object}
, it works as expected:Now the disabled prop is correctly a real boolean, not a string.
The text was updated successfully, but these errors were encountered: