docs: remove JSX pragma everywhere
This commit is contained in:
committed by
Luca Casonato
parent
6c4f3a36d0
commit
77142fe4a0
@@ -37,9 +37,6 @@ This is done with JSX.
|
||||
```tsx
|
||||
// routes/about.tsx
|
||||
|
||||
/** @jsx h */
|
||||
import { h } from "preact";
|
||||
|
||||
export default function AboutPage() {
|
||||
return (
|
||||
<main>
|
||||
@@ -50,10 +47,6 @@ export default function AboutPage() {
|
||||
}
|
||||
```
|
||||
|
||||
> ℹ️ The first two lines are the JSX pragma, and the import for the JSX create
|
||||
> element function. These are just boilerplate. You don't need to know exactly
|
||||
> what they do - they just ensure that JSX gets rendered correctly.
|
||||
|
||||
The new page will be visible at `http://localhost:8000/about`.
|
||||
|
||||
<!-- You can find more in depth information about routes on the
|
||||
|
||||
Reference in New Issue
Block a user