mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
bfabc955c26e548ee535c96613781e7e945ef0e2
This wasn't clearly articulated and tested why the code structure is like this but I think the logic is correct - or at least consistent with the weird semantics. We place this top-level fragment check inside the recursion so that you can resolve how many every Lazy or Usable wrappers you want and it still preserves the same semantics if they weren't there (which they might not be as a matter of a race condition). However, we don't actually recurse with the top-level fragment unwrapping itself because nesting a bunch of keyless fragments isn't the same as a single fragment/element. DiffTrain build for commit https://github.com/facebook/react/commit/4ca20fd36b2444a74279e7022f89894710b1daab.
react-fbsource-import
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%