Skip to content

Commit

Permalink
Update to new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Nov 5, 2023
1 parent e17c49a commit ea755bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HTMX_INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ button := elem.Button(attrs.Props{
htmx.HXTarget: "#result-div",
}, elem.Text("Load Content"))

contentDiv := elem.Div(attrs.Props{elem.ID: "result-div"}, elem.Text("Initial content"))
contentDiv := elem.Div(attrs.Props{attrs.ID: "result-div"}, elem.Text("Initial content"))

pageContent := elem.Div(nil, button, contentDiv)
```
Expand Down

0 comments on commit ea755bc

Please sign in to comment.