Skip to content

Commit 9cdaf37

Browse files
authored
Update main.swift
1 parent f6f0fed commit 9cdaf37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/DOMKitDemo/main.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import JavaScriptKit
33

44
let document = globalThis.document
55

6-
let header = HTMLElement(from: document.createElement(localName: "h1"))!
7-
header.innerText = "Hello World!"
8-
_ = document.body!.appendChild(node: header)
6+
let button = HTMLElement(from: document.createElement(localName: "button"))!
7+
button.innerText = "Hello World!"
8+
_ = document.body!.appendChild(node: button)
99

1010
console.log(data: "Hello, world!")
1111

0 commit comments

Comments
 (0)