Skip to content

Commit

Permalink
Docs: updating README with a Polyfills anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
stevematney committed Apr 8, 2020
1 parent 780d227 commit 199559f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ customElements.define('incrementer', ReactTestComponent);

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

> ### Polyfills
> 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:
>
> ```html
Expand Down

0 comments on commit 199559f

Please sign in to comment.