Skip to content

Commit

Permalink
Update app/docs/md/conventions/components.md
Browse files Browse the repository at this point in the history
Co-authored-by: Cole Peters <[email protected]>
  • Loading branch information
macdonst and colepeters authored Feb 26, 2024
1 parent e92e45b commit dc71a29
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 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 `custom-elements.define('delete-button', DeleteButton)` method will be called, thus registering your web component with the browser.

This progressively enhances your, presentation only element, into an interactive client side web component.

Expand Down

0 comments on commit dc71a29

Please sign in to comment.