Monday, December 10, 2018

New comment by nickdandakis in "How Does setState Know What to Do?"

I've noticed that developers more accustomed to backend work, or projects that already have a heavy backend, prefer Vue. It's easier to grok because they're used to handlebar template syntax and directives. I've also noticed that Vue is preferred by people coming from jQuery and/or Wordpress type work. It's less intimidating for some unknown (to me anyway) reason.

I've pushed production Vue and React projects and my personal preference is React. I haven't worked with React Hooks yet but it looks like a game-changer and would make my codebases a lot cleaner. I prefer JSX although Vue also has JSX support, but I've yet to work on a project with complete opt-in for it. React also sets you up for React-Native in some way, in case you're considering targeting native platforms as well.

At the end of the day, don't pick React or Vue for a frontend that doesn't need it. For example, your personal site probably doesn't need a UI library. Then ask what your coworkers feel more comfortable with, if you have any. Finally, check how easy it'll be to integrate with (or migrate to) the existing codebase, if any.

Both libraries and ecosystems are incredible at the moment. You can get a clean and reasonable codebase, performant frontend, and great pace of work with either.

If you do go for the Vue route for professional work, consider donating to Evan's [patreon](https://www.patreon.com/evanyou/overview) or [Open Collective](https://opencollective.com/vuejs). And similarly for [Nuxt](https://opencollective.com/nuxtjs). React et al have venture funding or Facebook behind them for the most part.



from Hacker News - New Comments: "WordPress" https://ift.tt/2B1B3N2
via IFTTT

No comments:

Post a Comment

No sponsor, kit on order & visa wait - Scotland embrace late World Cup call

Scotland are "confident" visa issues will not prevent them arriving late for the men's T20 World Cup as chief executive Trudy ...