chore: version preact explicitly in import map (#258)
This allows users to control the `preact` version independently of fresh itself.
This commit is contained in:
@@ -43,7 +43,8 @@ Now, let's render some HTML using the route component. Another example:
|
||||
// routes/html.tsx
|
||||
|
||||
/** @jsx h */
|
||||
import { h, PageProps } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { PageProps } from "$fresh/runtime.ts";
|
||||
|
||||
export default function Page(props: PageProps) {
|
||||
return <div>You are on the page '{props.url.href}'.</div>;
|
||||
@@ -65,7 +66,8 @@ response after rendering the page component.
|
||||
// routes/html.tsx
|
||||
|
||||
/** @jsx h */
|
||||
import { h, PageProps } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { PageProps } from "$fresh/runtime.ts";
|
||||
import { HandlerContext, Handlers } from "$fresh/server.ts";
|
||||
|
||||
export const handler: Handlers = {
|
||||
|
||||
Reference in New Issue
Block a user