How to Use Jotai for Atomic State in React
Set up Jotai in React. Create atoms with the atom function, read and update them with useAtom, and build derived values that stay in sync.
Build modern UIs with React
Set up Jotai in React. Create atoms with the atom function, read and update them with useAtom, and build derived values that stay in sync.
Compare CSS Modules and Tailwind CSS for React. See how scoped CSS files and utility classes style the same card, then pick the fit for your team.
Set up Tailwind CSS v4 in a Vite React app. Install the Vite plugin, import Tailwind in your CSS, and style a component with utility classes.
Build an accessible React modal with createPortal, a dialog role, focus management, and Escape to close. See the full pattern in steps.
Build flexible React component APIs with the compound components pattern. Share state through context and let users arrange the parts.
The use API reads the resolved value of a Promise during render, or a context value from anywhere in a component, and pairs with Suspense and error boundaries.
Streaming SSR sends the page as a stream of HTML, delivering the shell first and the rest as data finishes, with Suspense boundaries deciding the order.
useOptimistic shows an instant, temporary UI while a mutation runs, then converges to the real result when the action finishes.
The Activity component hides a part of the UI without unmounting it, keeping its state and DOM while its Effects are cleaned up until it becomes visible again.
The ViewTransition component animates a component tree when it enters, exits, updates, or is shared between two positions, using the browser's View Transition API.
React 19.2 ships Activity, useEffectEvent, cacheSignal, Performance Tracks, and partial pre-rendering, plus SSR and tooling changes that matter in practice.
Move pricing, validation, and other rules out of components into pure functions and custom Hooks so React UI stays thin.