In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
What is the JavaScript framework for mobile and desktop applications? I believe many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problems. Through this article, I hope you can solve this problem.
When we hear the word JavaScript, "web development" suddenly comes to 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 now famous.
Although JavaScript dominates web development, it has to be subdued by Java, C# and C++ in mobile and desktop application development. However, many people may not notice that JavaScript also has an impact on mobile and desktop application development.
This article focuses on some of the major JavaScript frameworks and their advantages and disadvantages in the field of mobile and desktop application development.
1.Electron
Electron is a desktop application development framework launched in 2013. Electron allows developers to develop applications using HTML, CSS, and JavaScript, much like the web development stack. In addition, Electron is a combination of Node.js and Chromium, which allows you to run any web and Node applications using Electron.
Image source: https://2019.stateofjs.com/mobile-desktop/electron/
Advantages of Electron:
The Chromium rendering user interface is as versatile as a developer's tool.
Function is similar to web application
You can use HTML, CSS, and JavaScript for development
Can focus on core application development, Electron is responsible for all the tedious initialization steps
Multi-platform support
Use the npm module
Disadvantages of Electron:
Chromium needs a lot of space.
Safety problem
Cross-platform problem of local dependency
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 because they had to learn languages like Java to develop mobile applications. This ability to develop mobile applications using JavaScript has 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 large-scale promotion. React Native has many advantages, and several important advantages I have listed are as follows:
A large ecosystem with various packages and libraries
Shorter development time
Continuous updates supported by Facebook
Multi-platform support
Hot reloading
Open source
Supports the creation of a simplified user interface
Large communities and documents
The disadvantages of React Native are:
Native knowledge is needed to a certain extent
Compared with pure native applications, there may be performance problems
Safety problem
3.Ionic
Ionic is another open source mobile development framework based on Javascript, which is closely related to Angular. Ionic was launched in 2013, and its golden age came with the rise of Angular.
Like Electron, Ionic also contains HTML 5 SDK, which can be used to develop native applications using HTML, CSS, and JavaScript. The focus of Ionic is to build 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:
Cross-platform support
General web development technology can be used for development
Contains preset components and themes
Easy to learn
Built-in command line interface
The latest version supports React and Vue
The disadvantages of Ionic are:
Not suitable for high performance applications
Hot reloading is not available
Safety problem
Lack of stable plug-in
Common random failures in the construction process
In addition to the frameworks mentioned above, there are many other frameworks, such as native applications, Cordova, and Expo, which can also be used to develop mobile and desktop applications. The following figure shows statistics from the 2019 State of JavaScript survey.
Image source: https://2019.stateofjs.com/mobile-desktop/
You can clearly see that both Electron and React Native are at the top, while Ionic is much lower than native applications and Expo. But the reason for choosing Ionic by comparison is that it is based on Angular, and if you are familiar with Angular, Ionic will be easier to learn.
However, there are many frameworks that are not based on JavaScript, such as Flutter, which are developing rapidly in the competition of mobile application development. I think it's hard for these JavaScript frameworks to keep pace with them in the future. If you are interested in using JavaScript to develop mobile and desktop applications, Electron and React Native are good choices for you.
After reading the above, have you mastered what the JavaScript framework is for mobile and desktop applications? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.