WordPress-React Breakup: Suggest A JavaScript Framework to WordPress & Tell Why? [POLL]"
Tags: discuss, javascript, wordpress, opensource
Published: 2017-09-15 20:12:30

---
title: WordPress-React Breakup: Suggest A JavaScript Framework to WordPress & Tell Why? [POLL]"
published: true
description: WordPress is looking to adopt a new JavaScript framework, and here's your chance to contribute your opinion, showcase your fav. JS framework, and demo how it can improve the WordPress eco-system.
tags: discuss, javascript, wordpress, opensource
---

ReactJS and WordPress are breaking up. Matt Mullenweg (co-founder of WordPress) [announced](https://ma.tt/2017/09/on-react-and-wordpress/) is it today.

---

> I was half asleep when I read the announcement and since then I have created a [Twitter Poll](https://twitter.com/MrAhmadAwais/status/908551927264305152), a Facebook [poll/thread](https://www.facebook.com/groups/advancedwp/permalink/1624383604290514/), started a Gutenberg issue [Choosing the JavaScript Framework for Gutenberg (~WordPress)](https://github.com/WordPress/gutenberg/issues/2733), and now I am writing [this](https://ahmadawais.com/wordpress-react-vue-preact-development/) post. It's exciting news.

---

Since I believe the community is moving in the right direction here – this [issue](https://github.com/WordPress/gutenberg/issues/2733) is where one could share their thoughts about different JavaScript Frameworks for Gutenberg (that goes into the WordPress Core).

## ðŸš¢ JavaScript Frameworks

IMHO there are two prominent contenders here.

1.  [VueJS](https://vuejs.org/)
2.  [Preact](https://preactjs.com/)
3.  Other options ([Angular](https://angularjs.org/), [Ember](https://www.emberjs.com/), [Polymer](https://www.polymer-project.org/), [Aurelia](http://aurelia.io/), etc.)

---

Just to kick-start the discussion, here're a few ideas off the top of my head.

### âš¡ï¸ [VueJS](https://vuejs.org/):

*   **PRO**: Beginner friendly.
*   **PRO**: Proven track-record of success with Laravel.
*   **PRO**: Way more popular as compared to Preact with a great amount of community support.
*   **PRO**: More contributors than Preact.
*   **CONS**: Key person dependency.
*   **STATS**: [133](https://github.com/vuejs/vue/graphs/contributors) Core Contributors on GitHub, [66,943+](https://github.com/vuejs/vue/stargazers) Stargazers, and [209](https://github.com/vuejs/vue/releases) Releases.
*   **MONETARY BACKING:** At the time of writing, [VueJS OpenCollective](https://opencollective.com/vuejs) ($9,895/year – New campaign only four days old) and [Evan You's Patreon page](https://www.patreon.com/evanyou) ($8,815/month) monetary backing from the community. SÃ¶ren in comments pointed out that OpenCollective of Vue is only four days old.

ðŸŽ¯ I truly believe that WordPress can do a lot better with VueJS. VueJS has a huge set of followers, and it's easier for beginners to adopt. This can also turn into a big win for WordPress if done right. 

I have used VueJS myself, in several projects, and I love it. Also, a framework that's used outside of WP (such as Vue and its integration with Laravel), allows developers to use their experience in WP projects and non-WP projects. 

There's already a large cross-over of Laravel/WP devs, so having the same js framework makes a lot of sense as those devs can contribute to help drive Laravel, Vue, and WP forward all at the same time. – _Jason Bahl._

---

### âš¡ï¸ [PreactJS](https://preactjs.com/):

*   **PRO**: Easier transition.
*   **PRO**: Evolving community with about the same amount of monetary support as of VueJS.
*   **PRO**: A subset of React based libraries would still be well supported with Preact and with compat.
*   **CON**: Transition could lead to messy code and confusion (for beginners).
*   **CONS**: Key person dependency.
*   **STATS**: [100](https://github.com/developit/preact/graphs/contributors) Core Contributors on GitHub, [14,062+](https://github.com/developit/preact/stargazers) Stargazers, and [114](https://github.com/developit/preact/releases) Releases.
*   **MONETARY BACKING:** At the time of writing, [Preact OpenCollective](https://opencollective.com/preact) ($16,087) monetary backing from the community.

While PreactJS has its benefits, I am not the right person to ask for an opinion about it (since I have only slightly used Preact in two small projects). Though, it does look like that transitioning from React to Preact is very easy. That can motivate developers to chose Preact. I think this would be the wrong reason to chose it. 

ðŸ¤” I think this would be the wrong reason to chose it. It will only confuse the developers trying to adapt to this whole new eco-system of JavaScript frameworks, node modules, Webpack, and now aliasing Preact over React? Which could also lead to the code smells. Messier code.

---

### ðŸ• Resources:

*   My [Twitter Poll](https://twitter.com/MrAhmadAwais/status/908551927264305152) for 48 hours.
*   Facebook Thread: Advanced WordPress Fb Group's [Discussion](https://ahmda.ws/2h6skDa) & [Poll](https://ahmda.ws/2h5ZPFD).
*   GitHub Issue: [Choosing the JavaScript Framework for Gutenberg (~WordPress)](https://github.com/WordPress/gutenberg/issues/2733).

---

### ðŸ‘‰ VOTE HERE 
– [Twitter Poll](https://twitter.com/MrAhmadAwais/status/908551927264305152) for 48 hours. 1000+ votes already.
{% twitter 908551927264305152 %}


---

### ðŸŽ¯ Which JavaScript Framework you think is the right choice? 

1. [Tweet](https://twitter.com/MrAhmadAwais/status/908551927264305152) your thoughts
2. Or drop by in [this issue](https://github.com/WordPress/gutenberg/issues/2733) at Gutenberg's GitHub repository.


This post was initially published at AhmadAwais.com as: [WordPress-React Breakup: My Vue on P*react + WordPress Development!](https://ahmda.ws/WPVuePreact)

---

## ðŸŽ© [The WordPress Takeaway](https://WPTakeaway.club/)!
P.S. I will share the survey results and other news about WordPress & new JS Framework adoption in my newsletter called [The WordPress Takeaway](https://WPTakeaway.club/).
– written by my lovely wife [@MaedahBatool](https://twitter.com/MaedahBatool/) and yours truly [@MrAhmadAwais](https://twitter.com/mrahmadawais/).