Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

TypeScript typing for React components and hooks v1.0.0

Use this resource to type React components, hooks and events safely with TypeScript

New

  • 398 downloads
  • 163 likes
  • 180 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install typescript-react-typing-patterns

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent applies 33 rules in seven categories: component typing, hook typing, event handling, refs, generic components, context and utility types. It fixes type errors and proposes typed props and hooks. You get React code whose types are reliable.

Mostly picked by

Updated November 2, 2026

Card for the “TypeScript typing for React components and hooks” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: rules by priority and quick reference
  • rules/: rules on props, events, refs, contexts and utility types

Good fit for

  • Your React component props are poorly typed
  • You build generic components or hooks in TypeScript

Not for

    Tags

    • typescript
    • react
    • props
    • hooks

    About

    You say

    “Type the props of this table component and its sort event.”

    Card for the “TypeScript typing for React components and hooks” skill

    Skill published by asyrafhussin under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to type React components, hooks and events safely with TypeScript
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md154.6 KB
    • LICENSE1.1 KB
    • metadata.json1.4 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md1.7 KB
    • rules/_sections.md2 KB
    • rules/_template.md2.5 KB
    • rules/comp-children-types.md3.7 KB
    • rules/comp-default-props.md5.7 KB
    • rules/comp-display-name.md4.6 KB
    • rules/comp-fc-vs-function.md2.8 KB
    • rules/comp-forward-ref.md5.3 KB
    • rules/comp-polymorphic.md4.9 KB
    • rules/comp-props-interface.md3.3 KB
    • rules/comp-rest-props.md5.1 KB
    • rules/ctx-create.md5.2 KB
    • rules/ctx-provider.md4 KB
    • rules/ctx-reducer.md5 KB
    • rules/event-click-handler.md4.7 KB
    • rules/event-form.md3.8 KB
    • rules/event-handler-types.md4 KB
    • rules/event-keyboard.md3.7 KB
    • rules/generic-constraints.md4.1 KB
    • rules/generic-list.md4.6 KB
    • rules/generic-select.md3.9 KB
    • rules/generic-table.md3.9 KB
    • rules/hook-custom-hooks.md7.5 KB
    • rules/hook-generic-hooks.md9.7 KB
    • rules/hook-use-callback.md5.4 KB
    • rules/hook-use-context.md6.4 KB
    • rules/hook-use-memo.md6.6 KB
    • rules/hook-use-reducer.md7.4 KB
    • rules/hook-useref.md4.4 KB
    • rules/hook-usestate.md4.1 KB
    • rules/ref-callback.md3.4 KB
    • rules/ref-dom-elements.md3.7 KB
    • rules/ref-imperative-handle.md3.8 KB
    • rules/util-component-props.md3.9 KB
    • rules/util-discriminated-unions.md5.2 KB
    • rules/util-pick-omit.md4.2 KB
    • SKILL.md5.2 KB

    Origin and licence

    Listed unmodified

    Author
    asyrafhussin
    Source
    github.com/asyrafhussin/agent-skills/tree/1aa0ff717c10309226c9e678f00873976450fd76/skills/typescript-react-patterns
    Licence
    MIT

    Notice

    « typescript-react-patterns » (asyrafhussin, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.