mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-05 05:52:15 +02:00
🔤
This commit is contained in:
@ -8,12 +8,12 @@ button.disabled = true;
|
||||
const button2 = Object.assign(
|
||||
document.createElement('button'),
|
||||
{
|
||||
textContent: "Click me",
|
||||
className: "primary",
|
||||
disabled: true
|
||||
textContent: "Click me",
|
||||
className: "primary",
|
||||
disabled: true
|
||||
}
|
||||
);
|
||||
|
||||
// Add to DOM
|
||||
document.body.appendChild(button);
|
||||
document.body.appendChild(button2);
|
||||
document.body.append(button);
|
||||
document.body.append(button2);
|
||||
|
Reference in New Issue
Block a user