[Suggestion] Using Hyperscript #47
Replies: 4 comments
-
The following syntax using hyperscript works and improve a lot the readability of the HTML + JS code :-)
hyperscript dependency is
WDYT about using hyperscript to code JS events, ... within the HTML ? @Sgitario @aureamunoz |
Beta Was this translation helpful? Give feedback.
-
To be honest, I think that
is cleaner and simpler to understand and read. |
Beta Was this translation helpful? Give feedback.
-
Maybe but it requires to have functions declared within a js file while with hyperscript, we can declare the JS code directly next to the HTML tags using |
Beta Was this translation helpful? Give feedback.
-
yes, this is the only benefit I see |
Beta Was this translation helpful? Give feedback.
-
Suggestion
Using hyperscript simplify a lot the readability of the HTML and JS code .
Example of function added to the primaza.js file
which can be turned into such a declaration (NOT TESTED)
Beta Was this translation helpful? Give feedback.
All reactions