Skip to content

Commit e826e30

Browse files
authored
Merge pull request #169 from yuheiy/fix-webcomponents
Fix missing `extends` for custom elements
2 parents 07fe533 + c7fa7e4 commit e826e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/web-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function BrickFlipbox() {
4242
## Using React in your Web Components
4343

4444
```javascript
45-
class XSearch {
45+
class XSearch extends HTMLElement {
4646
connectedCallback() {
4747
const mountPoint = document.createElement('span');
4848
this.attachShadow({ mode: 'open' }).appendChild(mountPoint);

0 commit comments

Comments
 (0)