Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

Stop Prop Drilling Your React Modals: Introducing react-call

Better Stack 1 min read

Prop drilling in React is a common pain point, especially when dealing with modals. A new lightweight library, react-call, offers a cleaner solution by allowing developers to call components like asynchronous functions.

In a recent tutorial from Better Stack, the core concepts of react-call were broken down into three parts:

  • Root and Stack: The library uses a root component and a stack to manage modal instances, keeping them isolated from the main component tree.
  • Upsert Singletons: It supports active singletons, ensuring only one instance of a modal exists at a time.
  • Mutation Flow: Async operations like confirmation dialogs are handled with a clean mutation flow, eliminating the need for complex state management.

The video walks through a live code example, demonstrating how react-call can eliminate boilerplate code and simplify modal handling. By treating modals as async functions, developers can call them directly without prop drilling or context providers.

For React developers tired of managing modal state across components, react-call offers a promising, minimalistic approach.

React