Update dom.js
@@ -19,8 +19,8 @@ const myEl = el.div({ class:'alert' }, [
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const myButton = dom.create('button', {
|
const myButton = dom.create('button', {
|
||||||
type:"button",
|
"type": "button",
|
||||||
class:"btn btn-primary",
|
"class": "btn btn-primary",
|
||||||
"on:click": () => doSomething()
|
"on:click": () => doSomething()
|
||||||
}, "Okay");
|
}, "Okay");
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user