Replies: 2 comments 5 replies
-
@sor4chi |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks to usualoma, the conversation we had the other day about whether the React Compiler could work with Hono JSX seems to be going well. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
React has released a tool called React Compiler from v19, which mechanically does the writing on React component and handler’s memorization on the compiler side, which until now has been done manually by the user, and it is still in beta but is now available.
Therefore, we investigate whether Hono JSX, which claims to be compatible with React, can make good use of React Compiler, and if so, we set up this Issue in the name of investigation to see if we can adopt it.
The repository used for reproduction is here.
I thought seeing the App component transpile was important, so I Split Chunked it so that only the App code is in a separate chunk in React.
Hono JSX's bundle of App
React's bundle of App
It did not work in my environment.
However, the ReactCompiler transpile operation itself is working well and the output bundle is almost identical.
My guess is that the differential rendering process at rendering time is different from React.
related: #2959
Beta Was this translation helpful? Give feedback.
All reactions