4 ms·
It seems that the strings in the _ attribute aren't actually being read at runtime. E.g. if you edit them in the DOM it doesn't change anything. I assume this m
by SamBam 6y ago
It seems that the strings in the _ attribute aren't actually being read at runtime. E.g. if you edit them in the DOM it doesn't change anything. I assume this means it's compiled once on DOM load?
- deniz-a 6y agoYou're pretty much right. Modifying the code at runtime is useful for devtools fun, but not much else. If you'd like to play around, open the console and try calling the `_hyperscript` function: _hyperscript(`get the first <button/> transition its background-color to 'red' over 2s log ':]' `)
- recursivedoubts 6y agoWe have a (hidden) playground here: https://hyperscript.org/playground/ https://hyperscript.org/playground/ Still a work in progress, but you can play around w/ the language.