Replies: 1 comment 2 replies
-
My main concern about the syntax is that |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an explanation of the work that i have in my fork. I'm planning to use this in my RubyKaigi Lightning Talk. I'm currently wondering if I should put this into a separate gem or if we upstream it into the ruby.wasm js package.
I have Ruby.wasm-quickstart and Videoplayer that use this syntax.
Main difference:
JS.global.document
instead ofJS.global[:document]
button.style.backgroundColor = "#4CAF50"
instead of
button[:style][:backgroundColor] = "#4CAF50"
I also added type conversions for this to work as well as it does.
Any thoughts? :)
Main blockers
Beta Was this translation helpful? Give feedback.
All reactions