Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fastro/mod.ts>FunctionComponent

Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
Go to Latest
type alias FunctionComponent
import { type FunctionComponent } from "https://deno.land/x/fastro@v0.88.1/mod.ts";

Define the function component

Example:

const c = () => <div>Hello<div>
definition: (props: any) => JSX.Element