Skip to content

Commit

Permalink
Fix docs bug
Browse files Browse the repository at this point in the history
Signed-off-by: macdonst <[email protected]>
  • Loading branch information
macdonst committed Apr 9, 2024
1 parent 18c3a1d commit 27ee0e3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/docs/md/conventions/elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ In this example you create an element with a default description then use an API

```javascript
export default function MyHeader({ html, state }) {
const { attrs, store={} } = state
const { attrs, store } = state
const { heading = 'Default' } = attrs
const href = store.description || 'A default description'
const { description = 'A default description' } = store

return html`
<header>
<h1>
${heading}
</h1>
<p>
${description}
</p>
</header>
`
<header>
<h1>
${heading}
</h1>
<p>
${description}
</p>
</header>
`
}
```

Expand Down

0 comments on commit 27ee0e3

Please sign in to comment.