RecipesChapter 12: Type Development Strategies

Prototyping on the TypeScript Playground

Recipe 12.9 from The TypeScript Cookbook

// @jsxFactory: h
import { render, h } from "preact";

function Heading() {
    return <h1>Hello</h1>
}

const elem = <Heading/>
//    ^?
// This line above triggers inline hints
Open in TypeScript Playground →