👀 React 19 canary - New API documented

Useful to enhance a custom error overlay
(Next.js is actively working on a new one, using this API)

captureOwnerStack() !== componentStack

Owners create the JSX node
Comp render props.children => not owner

https://react.dev/reference/react/captureOwnerStack
Post image

Comments