Question:
I have created a Replit with Vite. I installed mithril as a package. I am trying to follow the mithril tutorial. The first thing is says to do is :-
var m = require("mithril")
m.render(document.body, "hello world")
Thank you.
I am very new to Javascript and struggling to make any sense of it. It feels like I have joined the Empire Strikes Back movie and don’t know why it matters that the guy in the mask is father to the guy he just chopped the hand off.
I was simply attempting to write a SPA in mithril but using Javascript modules. The modules work for me sometimes. Mithril works for me sometimes. But I am stabbing in the dark as to why. What I mean is - I get something simple to work, then I add one more line of code and then nothing works.
The suggestion you offer is probably excellent but is akin to telling me to watch Clone Wars to better understand the lore. Educational in itself but just another set of things I have to learn. I looked it over and it just deepens my confusion as to what is going on. But I truly appreciate the spirit in which it was offered.
I think I need to go away, learn more javascript, and then come back. Thank you.