Before we get into too much discussion, let’s look at a Hyperscript example that communicates the spirit of the thing: In English, it says: “When the div element is loaded, send an async request to ...
In server-side JavaScript, you will most likely use the fs library for dealing with the filesystem. This library is a module in Node and other platforms like Bun. So you don’t need to install it using ...