Will Hono utilize Preact for future improvement? #4436
Replies: 1 comment 1 reply
-
|
Hi! I think I can clarify a misunderstanding. It's not that Hono specifically supports React or "React syntax"; it would be more accurate to say that React, Preact and Hono can all render JSX into HTML through some additional compilation step. Here, when you see the TS compiler options set to "react-jsx", that's because the compiler requires instruction on how exactly to transform that templated JSX into statically rendered HTML, not because it's actually implementing React or Preact behind the scenes. (The other options are documented here.) So while React and Preact are mostly concerned with implementing dynamic reactivity while using JSX for templating, here Hono is only concerned with templating, so there's no real need to constrain your mental model into either React or Preact. It's all just JSX 😁 Hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Based on this doc, hono supports React syntax. Is Hono already support Preact or soon to be implemented? CMIIW
Since Preact is more lightweight than React, I think it's good to boost Hono JS overall performance.
Beta Was this translation helpful? Give feedback.
All reactions