Skip to content

Commit

Permalink
docs: add docs comment
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcguin committed Mar 25, 2024
1 parent e88ab5d commit f0976e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,13 @@ if (process.env.NODE_ENV === "development") {
}

const root = document.querySelector("#app div");
const app = Elm.Main.init({ node: root, flags: { word: "three" } });
Elm.Main.init({
node: root,
flags: {
/**
* update the value of the word. Optionally, remove the flag.
* Designed with flags to take a value from a backend eventually
* */
word: "three",
},
});

0 comments on commit f0976e5

Please sign in to comment.