www: new fenced code block design (#1629)

This commit is contained in:
Marvin Hagemeister
2023-08-13 10:52:41 +02:00
committed by GitHub
parent 7679e278cc
commit 6a599dbed5
43 changed files with 363 additions and 342 deletions
@@ -29,9 +29,7 @@ any necessary processing on the form data, and then pass data to the
Here is an example implementing a search form that filters an array of names
server side:
```tsx
// routes/search.tsx
```tsx routes/search.tsx
import { Handlers, PageProps } from "$fresh/server.ts";
const NAMES = ["Alice", "Bob", "Charlie", "Dave", "Eve", "Frank"];
@@ -59,7 +57,9 @@ export default function Page({ data }: PageProps<Data>) {
<button type="submit">Search</button>
</form>
<ul>
{results.map((name) => <li key={name}>{name}</li>)}
{results.map((name) => (
<li key={name}>{name}</li>
))}
</ul>
</div>
);