Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Oct 3, 2025

Overview

This PR adds the ref prop to <Fragment> in react@canary.

This means this API is ready for final feedback and prepared for a semver stable release.

What this means

Shipping Fragment refs to canary means they have gone through extensive testing in production, we are confident in the stability of the APIs, and we are preparing to release it in a future semver stable version.

Libraries and frameworks following the Canary Workflow should begin implementing and testing these features.

Why we follow the Canary Workflow

To prepare for semver stable, libraries should test canary features like Fragment refs with react@canary to confirm compatibility and prepare for the next semver release in a myriad of environments and configurations used throughout the React ecosystem. This provides libraries with ample time to catch any issues we missed before slamming them with problems in the wider semver release.

Since these features have already gone through extensive production testing, and we are confident they are stable, frameworks following the Canary Workflow can also begin adopting canary features like Fragment refs.

This adoption is similar to how different Browsers implement new proposed browser features before they are added to the standard. If a frameworks adopts a canary feature, they are committing to stability for their users by ensuring any API changes before a semver stable release are opaque and non-breaking to their users.

Apps not using a framework are also free to adopt canary features like Fragment refs as long as they follow the Canary Workflow, but we generally recommend waiting for a semver stable release unless you have the capacity to commit to following along with the canary changes and debugging library compatibility issues.

Waiting for semver stable means you're able to benefit from libraries testing and confirming support, and use semver as signal for which version of a library you can use with support of the feature.

Docs

Check out the "React Labs: View Transitions, Activity, and more" blog post, and the new docs for Fragment refs` for more info.

@meta-cla meta-cla bot added the CLA Signed label Oct 3, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Oct 3, 2025
@react-sizebot
Copy link

react-sizebot commented Oct 3, 2025

Comparing: d6eb735...ab0cf48

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB +0.05% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js +3.87% 536.14 kB 556.87 kB +3.96% 94.81 kB 98.56 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 663.96 kB 663.95 kB = 117.04 kB 117.03 kB
facebook-www/ReactDOM-prod.classic.js = 687.83 kB 687.81 kB = 121.08 kB 121.07 kB
facebook-www/ReactDOM-prod.modern.js = 678.26 kB 678.24 kB = 119.44 kB 119.42 kB
oss-stable-semver/react-dom/cjs/react-dom-client.production.js +3.87% 536.02 kB 556.75 kB +3.96% 94.78 kB 98.53 kB
oss-stable-semver/react-dom/cjs/react-dom-profiling.profiling.js +3.41% 607.63 kB 628.36 kB +3.67% 104.73 kB 108.57 kB
oss-stable/react-dom/cjs/react-dom-profiling.profiling.js +3.41% 607.76 kB 628.49 kB +3.67% 104.76 kB 108.60 kB
react-native/implementations/ReactFabric-prod.js +2.30% 360.97 kB 369.26 kB +2.33% 62.42 kB 63.88 kB
oss-stable-semver/react-dom/cjs/react-dom-client.development.js +2.24% 1,065.70 kB 1,089.57 kB +2.43% 176.67 kB 180.97 kB
oss-stable/react-dom/cjs/react-dom-client.development.js +2.24% 1,065.82 kB 1,089.69 kB +2.43% 176.70 kB 180.99 kB
oss-stable-semver/react-dom/cjs/react-dom-profiling.development.js +2.21% 1,082.08 kB 1,105.95 kB +2.38% 179.52 kB 183.78 kB
oss-stable/react-dom/cjs/react-dom-profiling.development.js +2.21% 1,082.21 kB 1,106.08 kB +2.38% 179.54 kB 183.81 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable-semver/react-dom/cjs/react-dom-client.production.js +3.87% 536.02 kB 556.75 kB +3.96% 94.78 kB 98.53 kB
oss-stable/react-dom/cjs/react-dom-client.production.js +3.87% 536.14 kB 556.87 kB +3.96% 94.81 kB 98.56 kB
oss-stable-semver/react-dom/cjs/react-dom-profiling.profiling.js +3.41% 607.63 kB 628.36 kB +3.67% 104.73 kB 108.57 kB
oss-stable/react-dom/cjs/react-dom-profiling.profiling.js +3.41% 607.76 kB 628.49 kB +3.67% 104.76 kB 108.60 kB
react-native/implementations/ReactFabric-prod.js +2.30% 360.97 kB 369.26 kB +2.33% 62.42 kB 63.88 kB
oss-stable-semver/react-dom/cjs/react-dom-client.development.js +2.24% 1,065.70 kB 1,089.57 kB +2.43% 176.67 kB 180.97 kB
oss-stable/react-dom/cjs/react-dom-client.development.js +2.24% 1,065.82 kB 1,089.69 kB +2.43% 176.70 kB 180.99 kB
oss-stable-semver/react-dom/cjs/react-dom-profiling.development.js +2.21% 1,082.08 kB 1,105.95 kB +2.38% 179.52 kB 183.78 kB
oss-stable/react-dom/cjs/react-dom-profiling.development.js +2.21% 1,082.21 kB 1,106.08 kB +2.38% 179.54 kB 183.81 kB
react-native/implementations/ReactFabric-profiling.js +1.95% 424.67 kB 432.97 kB +2.11% 71.25 kB 72.75 kB
react-native/implementations/ReactFabric-dev.js +1.26% 724.55 kB 733.66 kB +1.40% 115.36 kB 116.97 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.production.js +1.17% 407.78 kB 412.54 kB +0.79% 65.66 kB 66.18 kB
oss-stable/react-reconciler/cjs/react-reconciler.production.js +1.17% 407.80 kB 412.56 kB +0.79% 65.68 kB 66.20 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.profiling.js +1.00% 475.83 kB 480.60 kB +0.75% 74.48 kB 75.04 kB
oss-stable/react-reconciler/cjs/react-reconciler.profiling.js +1.00% 475.86 kB 480.62 kB +0.75% 74.50 kB 75.06 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js +0.64% 750.27 kB 755.08 kB +0.50% 117.20 kB 117.78 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js +0.64% 750.30 kB 755.11 kB +0.50% 117.22 kB 117.80 kB
oss-stable-semver/react-art/cjs/react-art.production.js +0.42% 310.38 kB 311.69 kB +0.27% 52.68 kB 52.83 kB
oss-stable/react-art/cjs/react-art.production.js +0.42% 310.46 kB 311.76 kB +0.27% 52.71 kB 52.85 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.production.js +0.40% 322.89 kB 324.20 kB +0.24% 56.32 kB 56.46 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.production.js +0.40% 322.97 kB 324.27 kB +0.24% 56.35 kB 56.48 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.production.js +0.40% 323.14 kB 324.45 kB +0.24% 56.39 kB 56.52 kB
react-native/implementations/ReactNativeRenderer-prod.js +0.35% 376.32 kB 377.64 kB +0.23% 64.91 kB 65.06 kB
react-native/implementations/ReactNativeRenderer-profiling.js +0.30% 439.89 kB 441.21 kB +0.23% 73.88 kB 74.05 kB
oss-stable-semver/react-art/cjs/react-art.development.js +0.22% 656.30 kB 657.78 kB +0.13% 103.14 kB 103.28 kB
oss-stable/react-art/cjs/react-art.development.js +0.22% 656.38 kB 657.85 kB +0.13% 103.16 kB 103.30 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js +0.22% 660.79 kB 662.26 kB +0.13% 104.46 kB 104.60 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js +0.22% 660.81 kB 662.29 kB +0.13% 104.46 kB 104.60 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js +0.22% 660.86 kB 662.34 kB +0.13% 104.48 kB 104.62 kB

Generated by 🚫 dangerJS against ab0cf48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants