Skip to content

Commit 27ee0e3

Browse files
committed
Fix docs bug
Signed-off-by: macdonst <simon.macdonald@gmail.com>
1 parent 18c3a1d commit 27ee0e3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

app/docs/md/conventions/elements.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,20 @@ In this example you create an element with a default description then use an API
5959

6060
```javascript
6161
export default function MyHeader({ html, state }) {
62-
const { attrs, store={} } = state
62+
const { attrs, store } = state
6363
const { heading = 'Default' } = attrs
64-
const href = store.description || 'A default description'
64+
const { description = 'A default description' } = store
6565

6666
return html`
67-
<header>
68-
<h1>
69-
${heading}
70-
</h1>
71-
<p>
72-
${description}
73-
</p>
74-
</header>
75-
`
67+
<header>
68+
<h1>
69+
${heading}
70+
</h1>
71+
<p>
72+
${description}
73+
</p>
74+
</header>
75+
`
7676
}
7777
```
7878

0 commit comments

Comments
 (0)