'How to append client-side scripts to page in Node

I'm starting project ts, node, express. Is there a way to add typescript files to html/ejs that run on client side (so i have access to document e.t.c., just like in regular js script)?

So it would be something like:

  • Node server with express that returns html pages and handles users sign in/up requests.
  • Adding, deleting, changing elements in html on user's activity handles in scripts on client side.

I would appreciate pointing on what I misunderstood in whole node, express conception if I did.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source