Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Standardized guidelines and patterns for Frontend State Strategy.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -21% | 0% |
| case-05 | ✓→✓ | = Same ✓ | -23% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 15% | 0% |
Is it server data? → React Query
Is it global UI state? → Zustand/Context
Is it local to component? → useState
Is it derived? → useMemotypescript// Local const [count, setCount] = useState(0); // Global const theme = useThemeStore(state => state.theme); // Server const { data: user } = useQuery('user', fetchUser); // URL const [searchParams] = useSearchParams();
Other measured skills in the registry, with their headline benchmark lift.