jotai-expert

Structures React state with Jotai atoms and derived values for scalable UI.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/pelith/Project-Remora-Frontend --skill jotai-expert-pelith
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jotai-expert
Source: https://github.com/pelith/Project-Remora-Frontend/tree/main/.agents/skills/jotai-expert
Command: npx skills add https://github.com/pelith/Project-Remora-Frontend --skill jotai-expert-pelith

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Jotai provides a flexible primitive-based approach to React state management, and this skill helps teams design robust atom structures, derive performant state, and optimize re-renders with best practices.

Core Features & Use Cases

  • Atom patterns: primitive, derived, write-only actions, and atom families.
  • Performance optimization: granular subscriptions, derived selectors, and focused atoms.
  • Usage with TS & tooling: type-safe atoms, patterns for large apps, and SSR support.
  • Use Case Example: Build application state with atoms to model domain concepts, and progressively optimize with splitAtom and focusAtom.

Quick Start

Install jotai and jotai/utils, create a primitive atom, read/write with useAtom, and progressively adopt derived/split atoms for fine-grained updates.

Frequently Asked Questions about jotai-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure scalable React state with Jotai atoms?

Build scalable React state using Jotai by modeling domain concepts as primitive atoms, then progressively deriving read-only or read-write atoms for fine-grained updates. Apply atomFamily and splitAtom to manage dynamic collections efficiently across large apps.

What's the best way to optimize Jotai re-renders in a large app?

Optimize Jotai re-renders in large apps by using granular subscriptions with derived selectors, focusAtom to target specific object properties, and splitAtom for array updates. This ensures components only re-render when their specific state slice changes.

When should I use splitAtom and focusAtom in Jotai?

Use splitAtom in Jotai when managing arrays of atoms to enable per-element granular updates, and use focusAtom to narrow subscriptions to specific properties within a large state object, preventing unnecessary component re-renders.

Can I use Jotai with TypeScript for type-safe state management?

Jotai supports TypeScript integration for type-safe state management by defining strongly typed primitive and derived atoms. This ensures type safety across atom reads, writes, and derived state logic within large React applications.

Does Jotai support server-side rendering (SSR) for React apps?

Yes, Jotai supports server-side rendering (SSR) for React apps. You can configure atoms and utilize loadable utilities to handle asynchronous state hydration and rendering on the server seamlessly.

How do derived atoms work in Jotai state management?

Derived atoms in Jotai state management work by computing read-only or read-write values from other atoms. They automatically update when their dependencies change, enabling performant state selectors without duplicating source data.