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!
Why is CPM so high? Why is ecpm so high but not m...
According to the 2019 and 2020 assessments of the...
On June 24, the "China Mobile Internet Devel...
1. Why does the financial industry need to create...
After experiencing the COVID-19 pandemic, consume...
Although the entry threshold for Internet brands ...
Peter Drucker, the father of modern management, o...
7 operational ideas for community operations (Par...
According to foreign media reports, the US Federa...
Only data can tell whether your promotion account...
Pathogenic microorganisms that cause illness exis...
Preface User operation is the most important part...
Starting from September 1, the "Interim Meas...
If some fruits win popularity with their taste, t...