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 <cole@colepeters.com>
  • Loading branch information
macdonst and colepeters authored Feb 26, 2024
1 parent 96d37af commit 523bc52
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
@@ -4,7 +4,7 @@ title: Components

When building UI elements for Enhance applications, we recommend starting with [Elements](/docs/elements). Elements are the perfect solution when you need server side rendering and don't require client side interactivity. We find that most applications are composed with a majority of strictly presentational components, and authoring that code with client side JavaScript can be counterproductive.

When you need to provide client side interactivity Components are what to reach for. They wrap your HTML, CSS and JavaScript in a portable web component. They are portable since these components can render themselves client side outside of Enhance applications. However, when they are included in an Enhance application they gain the super power of being rendered on the server and then hydrate themselves on the client. Components live in the `app/components/` folder in Enhance projects.
When you need to provide client side interactivity, Components are what to reach for. They wrap your HTML, CSS and JavaScript in a portable web component. They are portable’ because these components can render themselves client side outside of Enhance applications. However, when they are used in an Enhance application, they gain the super power of being rendered on the server and then hydrating themselves on the client. Components live in the `app/components/` folder in Enhance projects.

## Lifecycle

0 comments on commit 523bc52

Please sign in to comment.