LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

ref-patterns - Design and review React ref usage

Design and review React refs for DOM access, mutable instance values, ref forwarding, callbacks, and controlled imperative APIs without replacing reactive state.

Tags

Updated: 2026-11-08

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Distinguish refs from state
  • Use useRef for DOM access
  • Manage ref callback lifecycles
  • Forward refs through components
  • Apply React 19 ref-as-prop
  • Expose controlled imperative APIs
  • Compose compound-component refs
  • Review ref misuse

Inputs

  • React component code
  • React version
  • Ref usage requirements
  • DOM integration requirements

Outputs

  • Ref design guidance
  • Code review findings
  • Ref usage recommendations

Requirements

  • React codebase
  • Read and Grep access

Source

  • Spec: SKILL.md
React
refs
useRef
ref forwarding
useImperativeHandle
DOM integration
frontend engineering
Distinguish refs from state
Use useRef for DOM access
Manage ref callback lifecycles
Forward refs through components
React component code
React version
Ref usage requirements
Ref design guidance
Code review findings
Ref usage recommendations