This commit removes the need for users to specify a --config file. TS libs are now configured via `/// <reference>` directives, and the JSX transform is specified via the `/** @jsx h */` pragma. The future is configless!
12 lines
209 B
TypeScript
12 lines
209 B
TypeScript
/** @jsx h */
|
|
|
|
import { h } from "../deps.ts";
|
|
|
|
interface Props {
|
|
params: Record<string, string | string[]>;
|
|
}
|
|
|
|
export default function Greet(props: Props) {
|
|
return <div>Hello {props.params.name}</div>;
|
|
}
|