Skip to content
Back to skills

React Kprsnt2

ASecurity

React development patterns and best practices including hooks, state management, and performance optimization.

  • 57 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 31, 2026
developmentreactperformance

Works with

  • cli

Security analysis

A100/100

Scanned May 31, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill react-kprsnt2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of React Kprsnt2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for React Kprsnt2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-react-kprsnt2/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-react-kprsnt2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: react
description: React development patterns and best practices including hooks, state management, and performance optimization.
globs: ["**/*.jsx", "**/*.tsx", "**/next.config.*", "**/vite.config.*"]
priority: 95
tags: ["framework"]
---

# React Best Practices

## Component Design
- Keep components small and focused (< 200 lines)
- Prefer functional components with hooks
- Use composition over prop drilling
- Lift state only when needed
- Co-locate related code

## Hooks
- Use useState for local state
- Use useEffect for side effects (with cleanup)
- Use useCallback for stable function references
- Use useMemo for expensive computations
- Use useRef for mutable values
- Always include all dependencies in dependency arrays
- Create custom hooks for reusable logic

## Performance
- Use React.memo for expensive pure components
- Lazy load routes with React.lazy
- Use Suspense for loading states
- Use keys properly in lists (never use index as key)
- Avoid inline object/function creation in JSX
- Use React DevTools Profiler

## State Management
- Start with local state + prop drilling
- Use Context for theme/auth/locale
- Use Zustand/Jotai for simple global state
- Use React Query/TanStack Query for server state
- Use Redux Toolkit for complex client state

## Patterns
- Container/Presentational components
- Compound components for flexibility
- Render props for sharing logic
- Custom hooks for logic reuse

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.