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 523bc52 commit e92e45b
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 @@ -13,7 +13,7 @@ Let's look at the lifecycle of a component we'll call `DeleteButton`. This compo
1. Client requests a page including a `<delete-button></delete-button>` tag.
2. Enhance SSR finds the component in `app/components/delete-button.mjs`.
3. Enhance SSR runs the `render` method of the `DeleteButton` class on the server.
4. The entire page is returned to the client.
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.

Expand Down

0 comments on commit e92e45b

Please sign in to comment.