WordPress 决定停止使用 React

2,901 阅读2分钟
原文链接: zhuanlan.zhihu.com
简评:WordPress 已经用 React 好几年了,项目也几乎全部基于 React,当真是壮士断腕啊。

很多人肯定已经了解之前 React 的许可协议所引发的波澜(不了解的可以看一下 Facebook 的官方声明,网上也有很多相关介绍)。简而言之,就是你不能用基于 React 的项目去做和 Facebook 或其合作伙伴竞争的事情,如果有了法律纠纷,你们的 React 许可可能就会被撤销。

The license granted hereunder will terminate, automatically and without notice, if you (or any of your subsidiaries, corporate affiliates or agents) initiate directly or indirectly, or take a direct financial interest in, any Patent Assertion: (i) against Facebook or any of its subsidiaries or corporate affiliates, (ii) against any party if such Patent Assertion arises in whole or in part from any software, technology, product or service of Facebook or any of its subsidiaries or corporate affiliates, or (iii) against any party relating to the Software. - facebook/react

这种做法也就是 Facebook 公司的 BSD 许可证 + 专利开源协议。

因此,在 2017 年 7 月,Apache 基金会禁止使用遵循 BSD 许可证 + 专利开源协议的 JAR 包

而运营 WordPress 的 Automattic 公司近日也终于发声「将放弃使用 React」。

要知道近几年 Automattic 才用 React 重构了 WordPress.com,也就是 Calypso - WordPress.com,这也是较大型的基于 React 的开源项目之一。

WordPress 创始人 - Matt Mullenweg 的这篇文章解释了他们虽然对于 React 很满意,也一直在等待专利问题能够得到让他们放心的解决,但现在最终还是决定放弃 React 了,因为对于专利问题实在没办法忽视。

原文中提到 WordPress 团队已经开始做新的技术选型了,并将会对已有的基于 React 的项目进行重写(虽然这可能会让新产品 - WordPress/gutenberg 的正式发布推迟到明年),Matt Mullenweg 也提到他们的开发团队最近和 Vue 的核心开发者进行了交流。 后续应该也会出一系列相关的文章,我这里会持续关注,感兴趣的同学也可以直接关注 Matt MullenwegBlog(从原文评论中看到 Vue 的呼声很高啊)。

原文:On React and WordPress

日报扩展阅读: