docs[compiler]: clarify React DevTools support for Compiler Badges in React Native#7369
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size changesDetails📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
src/content/learn/react-compiler.md
Outdated
| ### How do I know my components have been optimized? {/*how-do-i-know-my-components-have-been-optimized*/} | ||
|
|
||
| [React Devtools](/learn/react-developer-tools) (v5.0+) has built-in support for React Compiler and will display a "Memo ✨" badge next to components that have been optimized by the compiler. | ||
| [React Devtools](/learn/react-developer-tools) (v5.0+) has built-in support for React Compiler and will display a "Memo ✨" badge next to components that have been optimized by the compiler. In React Native, this feature is available from version 0.75.0 onwards, since React Native bundles its own DevTools backend. |
There was a problem hiding this comment.
i think we should remove the "5.0" thing and instead refer to the new React Native DevTools (default since 0.76)
There was a problem hiding this comment.
Do you think this would be better?
| [React Devtools](/learn/react-developer-tools) (v5.0+) has built-in support for React Compiler and will display a "Memo ✨" badge next to components that have been optimized by the compiler. In React Native, this feature is available from version 0.75.0 onwards, since React Native bundles its own DevTools backend. | |
| [React Devtools](/learn/react-developer-tools) displays a "Memo ✨" badge next to components that have been optimized by the compiler. In React Native, this feature is part of the new DevTools (default since 0.76). |
|
@gaearon I think it would be better to keep the info about React Native version, just like we have info about the DevTools version, since there are still many projects using <0.75. It might mislead some as to why React DevTools v5.0+ badges are not showing up despite being available. At least, that was my idea, since I had to check the changelog to find this :) |
|
"React Native DevTools" is a new brand name and it links to a new tool. Maybe it's not ideal but let's see if people get confused? |
Updated docs to note that React Native supports DevTools Compiler Badges from version 0.75.0, due to its custom backend.