• Hi,
    I have recently been searching on the internet which leads to the WP core team choosing React over Vue for the amazing block editor project and beyond. Personally I hate React and it’s spaghetti code a.k.a JSX.

    Vue is way easy to learn, manage and code compared to React while having the same power (in some case even better power) than React. But after searching the whole internet I couldn’t find what leads to choosing React over Vue?

    As fas as I found back in 2017 the WP team was dividing what to use, React or Vue and then they gone with React. If anyone know why, I would love to know the reason.

    Moreover, does anyone think in future the project might get ported to Vue or a way to use Vue natively with block editor?

    • This topic was modified 4 years, 4 months ago by Jan Dembowski. Reason: Moved to Everything WordPress, this is not an Developing with WordPress topic
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Everything else WordPress, this is not an Developing with WordPress topic.

    Do you have a support topic or ask? These are support forums and not discussion forums after all.

    Thread Starter iSaumya

    (@isaumya)

    @jdembowski Sorry! My bad. I thought as it was development related discussion. That is why I selected not a support question while posting. Thanks for moving it to “Everything else WordPress”.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    No, no, it’s all good. It’s just these are forums for solving your problems. ??

    If you (as an example) have a problem with code you wrote (js or PHP) related to the new editor then that would be a good development topic. I was just wondering if you had an ask like that or not.

    Thread Starter iSaumya

    (@isaumya)

    @jdembowski Oh! I got it. Thanks again for moving the post to the correct thread. Actually I was reading only why the block editor uses Reach which has really bad coding structure especially for JSX and other things and also which is backed by an evil corp. like Facebook. Whereas it could have easily used Vue for all the front end stuff.

    When I dug deeper I found out that back in 2017 the WP core team was considering both Vue & React and then finally choose React over Vue. I am just trying to understand why?

    Vue is more powerful, easy to learn and has much cleaner code than React. Then why the WP core team choose React over Vue? Also if the WP core team will ever move to project from React to Vue in future? Or stay with React? Will there be some new ways be implemented so that Gutenberg blacks can also be reacted using Vue if someone don’t wanna use React?

    These questions were coming in my mind, so I thought let’s post to the WP forum and hear actually from some core team members. ??

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Blocks can be implemented using whatever you like, React is not a requirement for them.

    Thread Starter iSaumya

    (@isaumya)

    @otto42 Oh Really? But no matter what tutorial I look at all are saying like without React there are no blocks. I mean to make blocks you either need to know React or go with the ACF Blocks route. Also, I did Google about making blocks using Vue but it seems very cumbersome and jumping lots of hoops as it turns out at the end of the day the system will use JSX crap only.

    But if you got any good tutorial recommendation, do share that. Currently, almost all the time when it comes to making the custom blocks we love using ACF Blocks more than anything.

    Moreover, your answer still didn’t clarify why the WP Core team choose React over Vue in the first place? I mean why? Would really love to know that.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Here’s an example. I have not tried it myself, but:

    https://jschof.com/gutenberg-blocks/gutenberg-blocks-without-a-build-process/

    Basically, you don’t *need* libraries and such to make blocks. They may be easier to do with the existing libraries and most people are using React because it’s simpler all around to fit in, but it can be done any way you want to do it, really.

    As for why they chose one thing over the other? No idea. I didn’t write it or make the choice. I don’t much care for writing code in JS myself.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Why Gutenberg chose to go with React instead of Vue?’ is closed to new replies.