state-management
Installation
SKILL.md
State Management Skill
Overview
This skill helps you choose and implement the right state management solution for your React/Next.js application. From local state to global stores, this covers all the patterns you need.
State Management Hierarchy
1. Local State (useState)
Use for component-specific state that doesn't need to be shared.
'use client'
import { useState } from 'react'
export function Counter() {
const [count, setCount] = useState(0)