Should you use React Native
I had an argument with a friend last week regarding React Native.
My argument was that React Native in my case gave little to no advantage vs just using Cordova.
Let me elaborate.
About 5 years ago I built a responsive web app. The app needed to run mainly on mobile.
When I started the project I used jQuery mobile.
The performance was horrible!
So I switched to Twitter Bootstrap with Angular.js. Horrible performance.
So I switched Angular.js with Knockout.js. Still horrible performance.
Guess what. The app ran incredibly fast.
I’m not saying that you can’t optimize React to run faster, but for what benefit? when I can actually write once and run everywhere with zero optimization.
And I’m not saying there is no use case for React.js or any other framework.
When you are developing in large teams you don’t have much of a choice. You need a Framework as a language between teams.
But if you are building a small to medium app, and you are a small team (up to 3 developers), and performance is important.
For DOM manipulation just use innerHTML. If you wish to understand why, here are some links
If you think it’s fast, this article might be what you were missingmedium.com
My general rule of thumb -
If it makes your life as a developer easier, then it makes your users life harder. and vice versa