-
Beta Was this translation helpful? Give feedback.
Answered by
bokunodev
Mar 22, 2026
Replies: 1 comment
-
|
found a solution. for some reason arrow function and a function returning an html template behaves differently. function button() {
return html`<button>123</button>`
}
const list = data.map((value) => {
return html`<h1>${value}</h1> ${button}`
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bokunodev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

found a solution. for some reason arrow function and a function returning an html template behaves differently.