1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-02 04:32:14 +02:00

🐛 🔤 Renames Option to OptionComponent

This commit is contained in:
2024-12-10 15:43:15 +01:00
parent 6f8e8c828c
commit 513c32eb37

View File

@ -30,12 +30,12 @@ function HelloWorldComponent(){
el("select", { el("select", {
onchange: event=> emoji(event.target.value), onchange: event=> emoji(event.target.value),
}).append( }).append(
el(Option, "🎉", isSelected), el(OptionComponent, "🎉", isSelected),
el(Option, "🚀", isSelected), el(OptionComponent, "🚀", isSelected),
) )
); );
} }
function Option({ textContent }){ function OptionComponent({ textContent }){
return el("option", { value: textContent, textContent }) return el("option", { value: textContent, textContent })
} }
``` ```