react
Installation
SKILL.md
React Skill
Comprehensive patterns and best practices for React, Next.js, and TypeScript development.
What I Know
React Patterns
Functional Components with Hooks
// Preferred: Functional component with hooks
function MyComponent({ value }: Props) {
const [state, setState] = useState(initialState)
const ref = useRef<HTMLInputElement>(null)
useEffect(() => {
// Side effect logic
return () => cleanup()
}, [dependencies])