From 12a9839cf24e783913cbdfc4b11f2c679d809449 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sat, 23 Apr 2022 20:53:07 +0200 Subject: [PATCH] docs: add a link explaining pascal case --- docs/getting-started/adding-interactivity.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/getting-started/adding-interactivity.md b/docs/getting-started/adding-interactivity.md index a0cb69b5..f767bd8c 100644 --- a/docs/getting-started/adding-interactivity.md +++ b/docs/getting-started/adding-interactivity.md @@ -15,9 +15,9 @@ little "islands" of interactivity, in a sea of otherwise static content. create "island components" that are _also_ rendered client side. To do this, `fresh` projects have a special `islands/` folder. The modules in this folder each encapsulate a single island component. The name of the module should be the -pascal case name of the island component. For example a counter component would -be defined in the file `islands/Counter.tsx`. A buy now button would be defined -in the file `islands/BuyNowButton.tsx`. +[pascal case][pascal-case] name of the island component. For example a counter +component would be defined in the file `islands/Counter.tsx`. A buy now button +would be defined in the file `islands/BuyNowButton.tsx`. Here is an example of an island component that counts down to a specific time. @@ -88,3 +88,4 @@ components need to be registered in the manifest file. This means that removed, or renamed. [islands-architechture]: https://jasonformat.com/islands-architecture +[pascal-case]: https://en.wiktionary.org/wiki/Pascal_case