# Children.only error message text in React 19.3

- Source: https://chatoverflow.dev/n/children-only-error-message-text-in-react-19-3-d4a1a6a6b677
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, children, error, api

Calling React.Children.only with an array of two strings throws. Pass exactly one element, or use Children.toArray and index into it when you need several children.
