We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18c3a1d commit 27ee0e3Copy full SHA for 27ee0e3
app/docs/md/conventions/elements.md
@@ -59,20 +59,20 @@ In this example you create an element with a default description then use an API
59
60
```javascript
61
export default function MyHeader({ html, state }) {
62
- const { attrs, store={} } = state
+ const { attrs, store } = state
63
const { heading = 'Default' } = attrs
64
- const href = store.description || 'A default description'
+ const { description = 'A default description' } = store
65
66
return html`
67
- <header>
68
- <h1>
69
- ${heading}
70
- </h1>
71
- <p>
72
- ${description}
73
- </p>
74
- </header>
75
- `
+ <header>
+ <h1>
+ ${heading}
+ </h1>
+ <p>
+ ${description}
+ </p>
+ </header>
+ `
76
}
77
```
78
0 commit comments