WordPress 停止使用 React ,所有项目将进行重构

分享本文:
wordpress-stop-using-react

WordPress 的创始人 Matt 昨天在其博客上发文,称决定停止使用 React 。在此之前,WordPress 几乎所有项目都基于 React 开发,包括最近开始开发的编辑器 Gutenberg (古腾堡) ;这次决定停止使用 React ,可谓壮士断腕。

事情的起因,是 Facebook 几周前发表的一篇关于 React 使用许可协议的官方声明。在这篇声明中,Facebook 称,任何人不能将 React 用于与 Facebook 及其合作公司有直接或间接竞争关系的项目中,否则 Facebook 公司自动取消其使用许可。

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 的应用范围十分广泛,百度、阿里、腾讯等许多大公司的很多项目都基于 React 开发。

因此,Facebook 这样的许可条款令许多开发者和公司心生担忧。毕竟,谁也难以保证自己未来的业务不会与 Facebook 公司或者其合作公司发生直接或间接的冲突;更何况,万一 Facebook 哪天闯入你所在领域了呢?

WordPress 之前的绝大部分项目都是基于 React 开发的。比如,Automattic 公司最近几年使用 React 重构了 WordPress.com ,也就是所谓的 Calypso 项目;还有 WordPress 4.8 版本之后开始的 Gutenberg (古腾堡) 项目,也是基于 React 开发的。

Matt 在文章中表示,WordPress 最近几年对于 React 非常满意,也一直期待专利问题能够获得解决。不过现在,还是决定放弃 React ,并已经和核心开发者进行交流,开始进行新的技术选型。

 

分享本文:


评论: WordPress 停止使用 React ,所有项目将进行重构

发表一下评论

邮箱地址不会被公开。 必填项已用*标注