5 ms·
>> rewrite Gutenberg using a different library. It will likely delay Gutenberg at least a few weeks I love this. How many times in my career have I heard "the
by hoodoof 9y ago
>> rewrite Gutenberg using a different library. It will likely delay Gutenberg at least a few weeks
I love this. How many times in my career have I heard "the rewrite will take us <some short period of time>". Good luck with that estimate.
- dangoor 9y agoThis is plausible because there are quite a few libraries that have adopted React's model and some have even adopted React's API (Preact). Of course, they could still get sued for patent infringement if Facebook has patents covering certain aspects of React (which, ironically, they wouldn't be under the React license).
- TAForObvReasons 9y agoWe've migrated reasonably large React projects to Preact using the amazing preact-compat : https://www.npmjs.com/package/preact-compat https://www.npmjs.com/package/preact-compat -- it was really as simple as wiring aliases in the webpack config!
- maxyme 9y agoIsn't it unclear if preact violates Facebook's patents?
- TAForObvReasons 9y agoThe current understanding is that none of the patents in the portfolio currently covers React (and by extension, preact). But flipping the switch would satisfy the first-order requirement of not imposing the FB patent grant upon users of WP
- deleted 9y ago[deleted]
- arvinsim 9y agoI guess you weren't dependent on Synthetic events then.
- pento 9y agoGutenberg's direct React usage is actually quite small - components implement a WordPress element, which is currently a wrapper for React, but can be transformed to use something else behind the scenes. https://github.com/WordPress/gutenberg/tree/master/element https://github.com/WordPress/gutenberg/tree/master/element
- collinmanderson 9y agoAlso, Gutenberg is still quite a young library (about 8 months old), and just hit 1.0 in the last few weeks, so it's not too late to rewrite.