Skip to content

Commit e59f1aa

Browse files
committed
fix readme example
1 parent 0aea317 commit e59f1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body = h.body(
2626
h.h1("Here is a title!"),
2727
h.p("This is a paragraph."),
2828
h.button("Click Me for an alert!", onclick="buttonClicked()"),
29-
Cobweb.Javascript("const buttonClicked = () => alert('This button was clicked!')"),
29+
h.script("const buttonClicked = () => alert('This button was clicked!')"),
3030
)
3131

3232

0 commit comments

Comments
 (0)