Skip to content

Commit 199559f

Browse files
authored
Docs: updating README with a Polyfills anchor
1 parent 780d227 commit 199559f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ customElements.define('incrementer', ReactTestComponent);
5959

6060
The key pieces of code are `... extends ReactHTMLElement` and `this.mountPoint`.
6161

62+
> ### Polyfills
6263
> One thing to remember is that you will need to load [the webcomponentsjs polyfills](https://www.webcomponents.org/polyfills) for `ReactHTMLElement` to work in all browsers. Be sure to include [the ES5 adapter](https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs#custom-elements-es5-adapterjs), as we currently transpile `ReactHTMLElement` down to ES5. The polyfills should be in the `<head>`, and should look something like this:
6364
>
6465
> ```html

0 commit comments

Comments
 (0)