docs: remove JSX pragma everywhere

This commit is contained in:
Luca Casonato
2022-09-08 11:53:38 +02:00
committed by Luca Casonato
parent 6c4f3a36d0
commit 77142fe4a0
10 changed files with 0 additions and 33 deletions
-6
View File
@@ -15,8 +15,6 @@ folder. The file must have a default export that is a regular Preact component.
A props object of type `UnknownPageProps` is passed in as an argument.
```tsx
/** @jsx h */
import { h } from "preact";
import { UnknownPageProps } from "$fresh/server.ts";
export default function NotFoundPage({ url }: UnknownPageProps) {
@@ -32,8 +30,6 @@ example when the route did match, but the requested resource does not exist.
This can be achieved with `ctx.renderNotFound`.
```tsx
/** @jsx h */
import { h } from "preact";
import { Handlers, PageProps } from "$fresh/server.ts";
export const handler: Handlers = {
@@ -63,8 +59,6 @@ folder. The file must have a default export that is a regular Preact component.
A props object of type `ErrorPageProps` is passed in as an argument.
```tsx
/** @jsx h */
import { h } from "preact";
import { ErrorPageProps } from "$fresh/server.ts";
export default function Error500Page({ error }: ErrorPageProps) {
-2
View File
@@ -14,8 +14,6 @@ island. The file must have a default export that is a regular Preact component.
```tsx
// islands/MyIsland.tsx
/** @jsx h */
import { h } from "preact";
import { useState } from "preact/hooks";
export default function MyIsland() {
-4
View File
@@ -50,8 +50,6 @@ Now, let's render some HTML using the route component:
```tsx
// routes/html.tsx
/** @jsx h */
import { h } from "preact";
import { PageProps } from "$fresh/server.ts";
export default function Page(props: PageProps) {
@@ -75,8 +73,6 @@ response after rendering the page component.
```tsx
// routes/html.tsx
/** @jsx h */
import { h } from "preact";
import { HandlerContext, Handlers, PageProps } from "$fresh/server.ts";
export const handler: Handlers = {
-2
View File
@@ -30,8 +30,6 @@ is requested at this "locked" path, it will be served with a cache lifetime of
one year.
```jsx
/** @jsx h */
import { h } from "preact";
import { asset } from "$fresh/runtime.ts";
export default function Page() {