import { Head } from "$fresh/runtime.ts"; import { PageProps } from "$fresh/server.ts"; export type TestState = { root: string; stateInProps: string; }; export default function App(props: PageProps) { const statefulValue = props.state?.root === "root_mw" ? "The freshest framework!" : ""; const specialCase = props.state?.stateInProps; return ( <> {specialCase && } ); }