From 61b71c672035f89271cd6796bdc3499c0e0d4b35 Mon Sep 17 00:00:00 2001 From: tanquar Date: Sun, 19 Jun 2022 00:09:48 +0900 Subject: [PATCH] docs: grammatical correction, and remove unused import (#249) --- docs/getting-started/adding-interactivity.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/getting-started/adding-interactivity.md b/docs/getting-started/adding-interactivity.md index 0b39fd04..4cba59d9 100644 --- a/docs/getting-started/adding-interactivity.md +++ b/docs/getting-started/adding-interactivity.md @@ -11,8 +11,8 @@ you get the choice of shipping no JavaScript to the client, or shipping a renderer for the entire page. This is not very flexible, especially considering that most pages will only have -small pieces of content that require interactivity. For example a otherwise -static page might need a little bit of JavaScript to power a image carousel or +small pieces of content that require interactivity. For example an otherwise +static page might need a little bit of JavaScript to power an image carousel or "buy now" button. This model is often called [islands architecture][islands-architecture]. This refers to a page having little "islands" of interactivity, in a sea of otherwise static content. @@ -31,7 +31,7 @@ Here is an example of an island component that counts down to a specific time. // islands/Countdown.tsx /** @jsx h */ -import { h, useEffect, useMemo, useState } from "$fresh/runtime.ts"; +import { h, useEffect, useState } from "$fresh/runtime.ts"; const timeFmt = new Intl.RelativeTimeFormat("en-US");