Browse Source

Merge pull request #169 from yuheiy/fix-webcomponents

Fix missing `extends` for custom elements
main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
e826e307e0
  1. 2
      content/docs/web-components.md

2
content/docs/web-components.md

@ -42,7 +42,7 @@ function BrickFlipbox() {
## Using React in your Web Components
```javascript
class XSearch {
class XSearch extends HTMLElement {
connectedCallback() {
const mountPoint = document.createElement('span');
this.attachShadow({ mode: 'open' }).appendChild(mountPoint);

Loading…
Cancel
Save