docs: grammatical correction, and remove unused import (#249)
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user