Skip to content

Commit 96d37af

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

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
@@ -2,7 +2,7 @@
22
title: Components
33
---
44

5-
When building applications with Enhance 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. Let's face it the majority of your application is presentation only so why would you want to author that with client side JavaScript.
5+
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

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

0 commit comments

Comments
 (0)