This allows users to control the `preact` version independently of fresh itself.
14 lines
313 B
TypeScript
14 lines
313 B
TypeScript
/** @jsx h */
|
|
import { h } from "preact";
|
|
import { IS_BROWSER } from "$fresh/runtime.ts";
|
|
import Test from "../islands/Test.tsx";
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div>
|
|
<Test message="Hello!" />
|
|
<p>{IS_BROWSER ? "Viewing browser render." : "Viewing JIT render."}</p>
|
|
</div>
|
|
);
|
|
}
|