官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 宁陵县| 罗田县| 靖安县| 扎囊县| 来宾市| 固始县| 浦东新区| 赤峰市| 德化县| 沧源| 德令哈市| 开封县| 合作市| 阿尔山市| 思茅市| 嘉荫县| 绵阳市| 保亭| 邓州市| 延边| 葫芦岛市| 恩施市| 阳西县| 屏东县| 石河子市| 天镇县| 岱山县| 长兴县| 高要市| 隆子县| 武山县| 波密县| 南溪县| 安顺市| 化州市| 嘉善县| 麦盖提县| 石渠县| 衡南县| 马山县| 洮南市|