Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/react-reconciler/src/ReactChildFiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down