计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
react-typescript【效率与协作】Type React components and hooks with TypeScript patterns. Use when typing React props, hooks, event handlers, or component generics in TypeScript.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Props) over React.FC (which implicit children). Use JSX.Element or ReactNode as return type.PropsWithChildren<T> or explicitly type them as React.ReactNode.React.ChangeEvent<HTMLInputElement> or React.FormEvent<HTMLFormElement>.useRef, avoid any; use useRef<HTMLDivElement>(null). For useState, use generics for complex types: useState<User | null>(null).ComponentPropsWithoutRef<'button'> or ComponentPropsWithRef to extend native attributes safely.<T,>(props: ListProps<T>).success vs error states).Omit, Pick, and Partial to transform prop interfaces and avoid redundancy.any: Use unknown.React.FC: Implicit children deprecated/bad practice.Function: Use (args: T) => void.See references/example.md for typed props, generic components, and hook ref patterns.
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: