i've started on a rewrite of the React Compiler docs thanks to the feedback from this thread: bsky.app/profile/nmn.... i want to make our compiler docs really great before the stable release, so i would love to hear more feedback! github.com/reactjs/reac...
Post
github.com[compiler] Rewrite React Compiler Docs by poteto · Pull Request #7868 · reactjs/react.devWe've received feedback that the compiler docs are difficult to understand and not prominent enough that people don't realize the compiler is a serious project and is near stable.
This PR r...
Something I find strange with React Compiler (and also the docs here) is how React.memo is compiled: In the 1st image, we can see that using or not `React.useMemo` results in the same output (which is 100% expected). But in the 2nd image, `React.memo` has a different output
0 reposts0 likes
I may be mis understanding this, but as `React.memo()` is kept in the output, and as I don't see special flags (like `react.memo_cache_sentinel`) at the component level, I feel like we'll still need to use `React.memo` to avoid re-rendering a component See playground.react.dev#N4Igzg9grgTg...
playground.react.devReact Compiler Playground
@ayc0.github.io I added a bullet to the React.memo reference: react-dev-git-pr7868-fbopensource.vercel.app/reference/re... does this help?
react-dev-git-pr7868-fbopensource.vercel.appmemo – ReactThe library for web and native user interfaces