Add secret internals section

This commit is contained in:
Ricky Hanlon
2024-04-24 21:38:41 -04:00
parent 09fea30e12
commit 76f1b15712
2 changed files with 12 additions and 4 deletions

View File

@@ -435,7 +435,15 @@ TODO
### Changes for libraries depending on internals {/*changes-for-libraries-depending-on-internals*/}
TODO
This release includes changes to React internals that may impact libraries that ignore our pleas to not use internals like `SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`. These changes are necessary to land improvements in React 19, and will not break libraries that follow our guidelines.
Based on our [Versioning Policy](https://react.dev/community/versioning-policy#what-counts-as-a-breaking-change), these updates are not listed as breaking changes, and we are not including docs for how to upgrade them. The recommendation is to remove any code that depends on internals.
To reflect the impact of using internals, we have renamed the `SECRET_INTERNALS` suffix to:
`_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
In the future we will more aggressively block accessing internals from React to discourage usage and ensure users are not blocked from upgrading.
## Other Breaking Changes {/*other-breaking-changes*/}

View File

@@ -12,13 +12,13 @@ This blog is the official source for the updates from the React team. Anything i
<BlogCard title="React 19 Beta " date="April 1, 2024" url="/blog/2024/04/01/react-19">
TODO
In the React 19 Beta Upgrade Guide, we shared step-by-step instructions for upgrading your app to React 19 Beta. In this post, we'll give an overview of the new features in React 19, and how you can adopt them.
</BlogCard>
<BlogCard title="React 19 Beta Upgrade Guide" date="February 15, 2024" url="/blog/2024/04/01/react-19-upgrade-guide">
<BlogCard title="React 19 Beta Upgrade Guide" date="April 1, 2024" url="/blog/2024/04/01/react-19-upgrade-guide">
TODO
The improvements added to React 19 require some breaking changes, but we've worked to make the upgrade as smooth as possible and we don't expect the changes to impact most apps. In this post, we will guide you through the steps for upgrading libraries to React 19 beta.
</BlogCard>