This allows users to control the `preact` version independently of fresh itself.
11 lines
204 B
TypeScript
11 lines
204 B
TypeScript
/** @jsx h */
|
|
import { h } from "preact";
|
|
|
|
interface Props {
|
|
params: Record<string, string | string[]>;
|
|
}
|
|
|
|
export default function Greet(props: Props) {
|
|
return <div>Hello {props.params.name}</div>;
|
|
}
|