This article is reproduced from the public account "Reading Core Technique" (ID: AI_Discovery) When we hear the word JavaScript, “web development” immediately pops into our mind, because JavaScript has been the most widely used language for web application development for a long time, and frameworks such as Angular, React, and Vue are also very famous at present.
Although JavaScript dominates the web development space, it has to take a backseat to Java, C#, and C++ in mobile and desktop application development. However, many people may not realize that JavaScript has also had an impact on mobile and desktop application development. In this article, we will discuss some of the major JavaScript frameworks and their pros and cons for mobile and desktop app development. 1. Electron Electron is a desktop application development framework launched in 2013. Electron allows developers to develop applications using HTML, CSS, and JavaScript, which is very similar to the web development stack. In addition, Electron is a combination of Node.js and Chromium, which enables you to run any web application and Node application using Electron. Image source: https://2019.stateofjs.com/mobile-desktop/electron/ Advantages of Electron:
Disadvantages of Electron:
2. React Native React Native is one of the most commonly used mobile development platforms. React native was launched in 2015 and quickly became popular among JavaScript developers, who previously had to learn languages like Java to develop mobile apps. This ability to develop mobile apps using JavaScript also attracted many web developers to start their mobile development journey using React native. Image source: https://2019.stateofjs.com/mobile-desktop/reactnative/ JavaScript and JSX are the main components of ReactNative, and being able to use most of the code on Android and IOS platforms is the main reason behind its massive adoption. React Native has many advantages, and I have listed a few important ones as follows:
The disadvantages of React Native are:
3. Ionic Ionic is another open source Javascript-based mobile development framework that is closely related to Angular. Launched in 2013, Ionic’s golden age came with the rise of Angular. Similar to Electron, Ionic also includes HTML 5 SDK, which enables the development of native applications using HTML, CSS, and JavaScript. Ionic focuses on building innovative and user-friendly applications to meet application needs. But sadly, with the massive promotion of React Native, the number of Ionic users is decreasing. Image source: https://2019.stateofjs.com/mobile-desktop/ionic/ The advantages of Ionic are:
The disadvantages of Ionic are:
In addition to the frameworks mentioned above, there are many others, such as native apps, Cordova, and Expo, which can also be used to develop mobile and desktop applications. The following figure shows the statistics of the 2019 State of JavaScript survey. Image source: https://2019.stateofjs.com/mobile-desktop/ It can be clearly seen that Electron and React Native are at the top, while Ionic is far below native apps and Expo. However, the reason for choosing Ionic is that it is based on Angular. If you are familiar with Angular, Ionic will be easier to learn. However, there are also many frameworks that are not based on JavaScript, such as Flutter, which are growing rapidly in the mobile app development competition. I think it will be difficult for these JavaScript frameworks to keep up with them in the future. If you are interested in developing mobile and desktop applications using JavaScript, Electron and React Native are good choices for you. |
<<: WeChat has hidden Easter eggs! Emojis and symbols can convey "mysterious messages"
>>: 00Kb2's small plug-in can remove WeChat blocking!
Loading long image... Source: Science Popularizat...
There are many experts on the Internet who have w...
It is the peak travel season for May Day again, a...
This article mainly explains the Red Ocean strate...
At 20:17 local time on March 15, Serbian Presiden...
As a design tool, user portraits can help designe...
Everyone is familiar with the famous animation &q...
At the recently concluded MWC2016, VR once again ...
How are transmission lines mounted on tall towers...
Most people may not even know how to pronounce th...
Scoping object A to object B means that object B ...
Since last year, Douyin e-commerce's delivery...
Search is basically a function that every applica...
According to foreign media reports, Microsoft rece...
On May 17, according to a user survey recently la...