- Beginning React
- Andrea Chiarelli
- 207字
- 2021-07-23 17:10:29
How to Set up a React-Based Application
React is a JavaScript library, so we should be able to make a reference to it through a <script> tag in our HTML page and start writing our web application. However, this approach would prevent us from exploiting some features that are provided by a modern JavaScript development environment—features that make our lives easier. For example, we wouldn't be able to use recent features from ECMAScript 2015+, such as classes, modules, arrow functions, let and const statements, and so on. Or, we could use those features, but only recent browsers would support them.
The relationship of ECMAScript with JavaScript
Using the latest ECMAScript features requires a true development environment, allowing us to transpile our code into ECMAScript 5 version JavaScript code, so that even older browsers will be able to run our application. Setting up a modern JavaScript development environment requires the installation and configuration of a few tools: a transpiler, a syntax checker, a module bundler, a task runner, and so on. Learning to use these tools properly requires a lot of time, even before starting to write a single line of code.
Using the latest ECMAScript features requires a true development environment, allowing us to transpile our code into ECMAScript 5 version JavaScript code, so that even older browsers will be able to run our application. Setting up a modern JavaScript development environment requires the installation and configuration of a few tools: a transpiler, a syntax checker, a module bundler, a task runner, and so on. Learning to use these tools properly requires a lot of time, even before starting to write a single line of code.
推薦閱讀
- Mastering AWS Lambda
- PaaS程序設計
- Vue.js前端開發(fā)基礎與項目實戰(zhàn)
- Python高級編程
- 深度學習:算法入門與Keras編程實踐
- 概率成形編碼調(diào)制技術(shù)理論及應用
- Hands-On Microservices with Kotlin
- 嚴密系統(tǒng)設計:方法、趨勢與挑戰(zhàn)
- Mastering Drupal 8 Views
- INSTANT Passbook App Development for iOS How-to
- 低代碼平臺開發(fā)實踐:基于React
- Service Mesh實戰(zhàn):基于Linkerd和Kubernetes的微服務實踐
- Couchbase Essentials
- Oracle數(shù)據(jù)庫編程經(jīng)典300例
- C++程序設計教程(第2版)