AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

React Docs

skill-pledgeandgrow-pledge-skills-react · by pledgeandgrow

|

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-pledgeandgrow-pledge-skills-react

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-pledgeandgrow-pledge-skills-react)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of React Docs? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

React Expert (v19.x)

Official Documentation: https://react.dev/reference

Quick Reference

| Topic | File | |-------|------| | State hooks: useState, useReducer | state-hooks.md | | Effect hooks: useEffect, useLayoutEffect, useInsertionEffect | effect-hooks.md | | Context: createContext, useContext, Provider pattern | context.md | | Ref hooks: useRef, useImperativeHandle | ref-hooks.md | | Performance: useMemo, useCallback, memo, PureComponent | performance.md | | Concurrent features: useTransition, useDeferredValue, useActionState, useOptimistic | concurrent-features.md | | Other hooks: useId, useSyncExternalStore, useDebugValue, use | other-hooks.md | | Suspense, lazy, streaming | suspense.md | | Built-in components: Fragment, StrictMode, Profiler, Suspense | components.md | | Forms: Actions, useFormStatus, progressive enhancement | forms.md | | React 19 new features | react-19.md | | Rules of React: purity, hooks rules, ESLint | rules-of-react.md | | Advanced patterns: compound, render props, HOCs, custom hooks | advanced-patterns.md | | React DOM: createRoot, hydration, portals, flushSync | react-dom.md |

Core Philosophy

React is a declarative UI library built on three principles:

  1. Components — Independent, reusable pieces of UI
  2. Props — Read-only data flow from parent to child
  3. State — Mutable data that triggers re-renders when changed

Component Types

// Function Component (recommended)
function Greeting({ name }: { name: string }) {
  return Hello, {name}
}

// With state
function Counter() {
  const [count, setCount] = useState(0)
  return  setCount(c => c + 1)}>{count}
}

Component Lifecycle

Mount → Render → Commit → (State Change → Re-render → Commit) → Unmount
        ↑                                          ↑
    useEffect (after paint)              useEffect cleanup → new effect
    useLayoutEffect (before paint)

Hooks Rules

  1. Only call hooks at the top level — not inside loops, conditions, or nested functions
  2. Only call hooks from React functions — components or custom hooks
  3. Components and hooks must be pure — same inputs → same outputs, no side effects during render
// ✅ Correct
function Component() {
  const [state, setState] = useState(0)
  useEffect(() => { /* ... */ }, [])
  return 
}

// ❌ Wrong — hooks inside condition
function Component() {
  if (condition) {
    useEffect(() => {})  // ❌
  }
}

// ❌ Wrong — hooks after return
function Component() {
  const [state] = useState(0)
  if (!state) return null
  useEffect(() => {})  // ❌ — not always called
}

Installation

# Modern React app (Vite)
npm create vite@latest my-app -- --template react-ts

# Next.js (includes React 19)
npx create-next-app@latest

# React only
npm install react react-dom
npm install -D @types/react @types/react-dom

React 19 Quick Syntax

// Ref as prop (no forwardRef needed)
function Input({ ref, ...props }: { ref?: React.Ref }) {
  return 
}

// Context as provider
...

// Actions with useActionState
function Form() {
  const [state, submitAction, isPending] = useActionState(async (prev, formData) => {
    await saveData(formData)
    return { success: true }
  }, null)
}

// use() API — read promises in render
function Comments({ commentsPromise }) {
  const comments = use(commentsPromise)  // Suspends until resolved
  return comments.map(c => {c.text})
}

// Document metadata anywhere
function BlogPost({ title }) {
  return (
    <>
      {title}
      
      ...
    
  )
}

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.