I have a WP project in which a significant part of the view is written in Vue 2 (MPA mode, about 100+ components). The source code of the components is compiled using Vue-CLI in a folder independent of the WP. After build process the bundles are sent to the WP plugins, and connected in the right places with necessary data.
Now I am considering the possibility of making a complete independent SPA application with SSR based on existing components. I would be happy to use Frontity for this, but the customer wants results in a short time, and is not ready to rewrite everything on React.
Actually the question:
In your subjective opinion. which will be faster, rewrite everything anew on React or use Vue (Nuxt.js, or something else)?
Data is partially loaded along with the page (through wp_localize_script), partially from WP API (standard and custom endpoints).
Now it’s not headless, but we consider to make it so.
URL: https://social.bet
Hey @veliky.dev, it’s not easy to give you the right answer. But I think it’d be interesting for you to spend a couple of hours trying Frontity. If I were you I would follow the quick start guide to see everything that is solved by default with Frontity, and then study how much time would you need to invest with VUE in order to get SSR and the rest of the things.
I feel like it could be faster to migrate the components from VUE to React and build on top of Frontity, instead of building from scratch what the framework does from React to VUE.
IMHO you will get a better developer experience by going completely Headless. In this case your frontend app can be deployed completely separated (with a much more modern workflow)
Once you’ve gone Headless the key thing is making sure that the data is avaliable in the REST API. As long, as the data is in the REST API, it will be available for your Frontend components (React, Vue, Angular, …)
From there, is just a matter of choosing the Frontend framework that suits you best
Both React and Vue are great tools for building interactive user interfaces. Which one is better for
your project, will depend on factors like your specific product, business needs, environment,
developers, budget, timeframe, etc…
Both ecosystems have the same official packages for routing, state management or server
routing.
React is more popular than Vue. Because of this, you’ll find more documentation, packages, developers available for your project built in React
React is used by companies like Twitter, Airbnb, Disqus, PayPal, The New York Times, Netflix
It’s all right to prefer Vue for your development, it’s a great tool that we like a lot. For now, Frontity works only for React apps as we think is the framework with more future and possibilities (Wordpress started using React in its Gutenberg editor for example)
The super extra advantage of choosing the React + WordPress stack is that you can take advantage of Frontity which offers a lot of Features that will simplify a lot the development of projects using this stack