docs: grammatical correction, and remove unused import (#249)

This commit is contained in:
tanquar
2022-06-18 15:09:48 +00:00
committed by GitHub
parent 84a4305eeb
commit 61b71c6720
+3 -3
View File
@@ -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");