From 09d9978ba228a9bdfe7baccfaa0a6fea9e0e9c36 Mon Sep 17 00:00:00 2001 From: Rana Pratap Singh Date: Mon, 12 Jan 2026 21:51:41 +0530 Subject: [PATCH] Clarify comment about Fragment prop validation Improves readability of a comment without changing behavior. --- packages/react-reconciler/src/ReactChildFiber.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/react-reconciler/src/ReactChildFiber.js b/packages/react-reconciler/src/ReactChildFiber.js index 2a726447263c..0ff1a5406401 100644 --- a/packages/react-reconciler/src/ReactChildFiber.js +++ b/packages/react-reconciler/src/ReactChildFiber.js @@ -228,9 +228,10 @@ if (__DEV__) { }; } -// Given a fragment, validate that it can only be provided with fragment props -// We do this here instead of BeginWork because the Fragment fiber doesn't have -// the whole props object, only the children and is shared with arrays. +// Given a Fragment, validate that it is only provided with Fragment-specific props. +// We do this here instead of BeginWork because the Fragment fiber does not have +// access to the full props object; it only has children and is shared with arrays. + function validateFragmentProps( element: ReactElement, fiber: null | Fiber,