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:
@@ -28,7 +28,8 @@ as arguments in it's `props` object though.
|
||||
// routes/greet/[name].tsx
|
||||
|
||||
/** @jsx h */
|
||||
import { h, PageProps } from "$fresh/runtime.ts";
|
||||
import { h } from "preact";
|
||||
import { PageProps } from "$fresh/runtime.ts";
|
||||
|
||||
export default function GreetPage(props: PageProps) {
|
||||
const { name } = props.params;
|
||||
|
||||
Reference in New Issue
Block a user