Attaching an event listener on server-side works: Why and How? #131
Unanswered
gkatsanos
asked this question in
Help / Questions
Replies: 1 comment
-
There's nothing magic about it. Nanojsx will simply render your jsx to a string and send it to the client. The event listener will be added on the client-side since there is the following code Btw, I don't think your code renders valid HTML5, because the Helmet tags are not handled properly. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code below works; :
But how? Since I didn't use
hydrate()
.. I can't wrap my head around it. How is a JS event attached to a DOM element on server-side? (there's no DOM to attach to)Beta Was this translation helpful? Give feedback.
All reactions