Skip to content

Commit 523bc52

Browse files
macdonstcolepeters
andauthored
Update app/docs/md/conventions/components.md
Co-authored-by: Cole Peters <cole@colepeters.com>
1 parent 96d37af commit 523bc52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/docs/md/conventions/components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Components
44

55
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.
66

7-
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.
7+
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.
88

99
## Lifecycle
1010

0 commit comments

Comments
 (0)