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!
Do you still remember that Sony was unanimously b...
Li Songwei's systematic family parenting trai...
Before reading this article, you need to make sur...
Have you seen this little ball inside a mouse? Th...
Public relations planning, also known as "pu...
【Written at the end】 Mosquitoes can carry and spr...
The copywriting is obviously very well written, s...
When it comes to tourism marketing , whether it’s...
In the early 1960s, a notorious drug safety incid...
The May Day holiday is coming to an end in the bl...
Let's get straight to the point. The five fac...
Dapeng E-commerce live streaming sales course, sy...
1. Understanding Douyin and Douyin’s machine algo...
The Kirin 9000 chip used in the P50 Pro previousl...
This article is mostly the author's own thoug...