Toolverse
All skills

react-dev

by davila7

This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned. Covers type-safe patterns for React 18-19 including generic components, proper event typing, and routing

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davila7
Category
Frontend
Views
23

About this skill

This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned. Covers type-safe patterns for React 18-19 including generic components, proper event typing, and routing integration (TanStack Router, React Router).

How to use

  1. Aktywuj skill react-dev w swoim projekcie React z TypeScriptem, gdy planujesz budować komponenty, implementować hooki lub pracować z routingiem. Skill automatycznie zasugeruje się w kontekście React TypeScript, React 19 lub Server Components.

  2. Dla komponentów z referencjami: w React 19 przekaż ref jako zwykłą właściwość zamiast używać forwardRef. Zdefiniuj typ props zawierający opcjonalny ref i rozpakuj go w funkcji komponentu.

  3. Przy obsłudze formularzy: zastąp useFormState na useActionState, który zwraca krotkę [state, formAction, isPending]. Przekaż formAction do atrybutu action formularza.

  4. Dla asynchronicznych danych: użyj hook use() do rozpakowania Promise lub kontekstu wewnątrz komponentu. Komponent zawiesi się do czasu rozwiązania Promise.

  5. Typuj event handlery precyzyjnie: dla onClick użyj React.MouseEvent, dla onChange w input użyj React.ChangeEvent. Generyczne komponenty deklaruj z ograniczeniami typu, np. .

  6. Przy integracji routera: skonsultuj się ze skill'm w kontekście TanStack Router lub React Router, aby uzyskać wzorce typowania dla parametrów trasy i nawigacji.

Related skills

shadcn-ui

by josechifflet

shadcn/ui component patterns for Next.js 16 applications. This skill should be used when adding UI components, customizing component styles, composing primitives, or integrating forms with react-hook-form. Covers installation, customization, composition patterns, and

Frontend
157206

angular

by sickn33

Modern Angular (v20+) expert with deep knowledge of Signals, Standalone Components, Zoneless applications, SSR/Hydration, and reactive patterns. Use PROACTIVELY for Angular development, component architecture, state management, performance optimization, and migration to modern

Frontend
2656

google-official-seo-guide

by littleben

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

Frontend
101196

tailwind-design-system

by wshobson

Build scalable design systems with Tailwind CSS, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

Frontend
2676

screenshot-to-code

by OneWave-AI

Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.

Frontend
94209

landing-page-guide-v2

by bear2u

Create distinctive, high-converting landing pages that combine proven conversion elements with exceptional design quality. Build beautiful, memorable landing pages using Next.js 14+ and ShadCN UI that avoid generic AI aesthetics while following the 11 essential elements

Frontend
3486