Skip to content

Commit 0c8d2a7

Browse files
committed
Adjust docs
1 parent ba13979 commit 0c8d2a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/_guide/your-first-component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ If you need to use a specific element name that doesn't match your class name (f
3838
```js
3939
import {controller} from '@github/catalyst'
4040

41-
@controller('happy-widget')
41+
@controller('hello-widget')
4242
class SomeClass extends HTMLElement {
4343
connectedCallback() {
44-
this.innerHTML = 'Hello from happy-widget!'
44+
this.innerHTML = 'Hello from hello-widget!'
4545
}
4646
}
4747
```
4848
<br>
4949

50-
This will register the element as `<happy-widget>` regardless of the class name. This is particularly useful when:
50+
This will register the element as `<hello-widget>` regardless of the class name. This is particularly useful when:
5151
- Your production build minifies class names
5252
- You want explicit control over the element name
5353
- The class name doesn't follow the naming pattern required for automatic naming

0 commit comments

Comments
 (0)