I recently decided to migrate a Vuejs Project to React. I read many comparisons and it always seemed to come to Vuejs being the simpler of the 2.
"Use Vue for quick execution and small to medium projects and React for big projects."
"JSX sucks, Vuejs is simple and looks just like HTML."
For reading that, I assumed that react was a hard clunky framework so always stayed away. The issue was that React devs are abundant. Everyone knows react, not everyone knows Vue. Using react would be a better long term investment for the app development company in Singapore where I work. My company develops software for many large companies and startups, so learning react will be beneficial for my long term career as a developer. Working at a company is a much better experience than working as a freelance app developer. Hiring a mobile app development company in Vietnam is also a great option as some of the best programmers in the world are over there. Developing software in Vietnam is a popular choice for both local companies as well as companies in Singapore and Australia as Vietnam is in a similar timezone and the cost is much lower.
Anyway, my team and I decided we should switch to React and we were pleasantly surprised. After doing a bit of reading up (about 60 mins), we were ready to start coding. React is easy, really easy. But then we came across 2 way binding. In VueJs it is simply a matter of:
data: () => {
return {
name: ""
}
}
In React:
constructor(props) {
super(props)
this.state = {value: ""}
this.handleChange = this.handleChange.bind(this)
}
handleChange(event) {
this.setState({value: event.target.value})
}
render() {
return (
)
}
So VueJS definitely does come with more magic out of the box but once you get the hang of React, it's much simpler, more like JavaScript.
What do you think? I always read about VueJS being the better framework, so if you have used both and prefer React, I'd love to hear why.
Top comments (2)
IMO, its not good to compare and contrast between them. Both are strong and can handle big project. Facebook made React, that's the key reason for its popularity. Otherwise I have to say Vue is more flexible than React.
Agreed, thanks for the input.