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
Re-export
import { type FunctionComponent } from "https://deno.land/x/fastro@v0.93.2/mod.ts";

Define the function component

Example:

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