Skip to content

Commit

Permalink
Correct typo for custom element registry object (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
knowler committed May 29, 2024
1 parent 0ea2974 commit 9003781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/docs/md/conventions/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Let's look at the lifecycle of a component we'll call `DeleteButton`. This compo
3. Enhance SSR runs the `render` method of the `DeleteButton` class on the server.
4. The entire page is returned to the client as HTML and CSS.
5. The client encounters a `script` tag and downloads it from the server.
6. This `script` tag includes the code for `DeleteButton` so it is evaluated and executed. When executed the `custom-elements.define('delete-button', DeleteButton)` method will be called, thus registering your web component with the browser.
6. This `script` tag includes the code for `DeleteButton` so it is evaluated and executed. When executed the `customElements.define('delete-button', DeleteButton)` method will be called, thus registering your web component with the browser.

This progressively enhances your presentational element into an interactive client side web component.

Expand Down

0 comments on commit 9003781

Please sign in to comment.