react-typescript
БесплатноБез исполняемых скриптовНе проверенType React components and hooks with TypeScript patterns. Use when typing React props, hooks, event handlers, or component generics in TypeScript.
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
React TypeScript
Priority: P1 (HIGH)
Implementation Guidelines
- Components: Prefer interface/type (
Props) overReact.FC(which implicit children). UseJSX.ElementorReactNodeas return type. - Children: For components that accept children, use
PropsWithChildren<T>or explicitly type them asReact.ReactNode. - Events: Always type event handlers using specific React events, such as
React.ChangeEvent<HTMLInputElement>orReact.FormEvent<HTMLFormElement>. - Hooks: For
useRef, avoidany; useuseRef<HTMLDivElement>(null). ForuseState, use generics for complex types:useState<User | null>(null). - Native Elements: Use
ComponentPropsWithoutRef<'button'>orComponentPropsWithRefto extend native attributes safely. - Generics: Implement generic components for reusable UI like lists using
<T,>(props: ListProps<T>). - Discriminated Unions: Use Discriminated Unions for mutually exclusive props (e.g.,
successvserrorstates). - Utility Types: Leverage
Omit,Pick, andPartialto transform prop interfaces and avoid redundancy.
Anti-Patterns
- No
any: Useunknown. - No
React.FC: Implicit children deprecated/bad practice. - No
Function: Use(args: T) => void.
References
See references/example.md for typed props, generic components, and hook ref patterns.
Установить react-typescript в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл react-typescript?
Type React components and hooks with TypeScript patterns. Use when typing React props, hooks, event handlers, or component generics in TypeScript.
Как установить скилл react-typescript?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл react-typescript запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic