Replies: 1 comment 1 reply
-
Thanks for your feedback! In the BlockSuite project, we are using Lit to develop the base editor framework. But in AFFiNE, we will continue to use React for now. As the decision maker about this, here are my two cents: In BlockSuite, we mainly chose Lit not for its framework-wise features (its DX is at the stage a bit more similar to React 15), but for its WebComponent-based nature. This allows us to make future implementations of AFFiNE's extension mechanism more framework agnostic (think about using Web Component to define arbitrary third-party blocks!). Also, in Lit, all the In AFFiNE, however, things will be different. Since this project was more about integrating BlockSuite and developing regular UI, its framework needed to be more focused on efficiency and ecosystem. At this point, React seems appropriate. We will continue improving React's use in AFFiNE, so stay tuned! |
Beta Was this translation helpful? Give feedback.
-
It seems that y'all (the @toeverything team) are using react for AFFiNE and Lit for blocksuite.
Can you say something about this decision?
Did you (or do you still) consider Hybrids as a web component library instead of Lit?
Beta Was this translation helpful? Give feedback.
All reactions