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

The bundle era

To solve this problem, it was important to solve the dependency problem in general. The move toward Node.js-based tools, such as npm, helped significantly, because now your dependencies would be pulled from a centralized location and versioning became a first-class citizen of JavaScript development, which was fantastic!

What was less fantastic, however, was when you needed to apply this problem to browser code and rich web applications. Often, this meant an intricate dance of understanding what libraries were required for which projects. If you wanted to use React with JSX (we'll talk more about this later), as well as the latest JavaScript syntax, you needed to know exactly what versions of React and Babel to include. You'd also need to understand which Babel plugins you'd need to have to support your use of whatever draft of JavaScript syntax.

Do you want to use some CSS transformers or any other language help, such as TypeScript or Flow, in your React project? If so, building and configuring your project becomes markedly more difficult, and we haven't even gotten to the problem of getting this code put together to be used on the browser! Now you needed to have a wide breadth of knowledge just to get your project started, and a wide depth of knowledge for knowing how to set up and configure something such as Webpack, Bundler, Grunt, Gulp, or Brunch!

This is the point of development that we were in before the prevalence of command-line tools and configuration utilities, so let's dive into that by talking about what problems Create React App solves!

主站蜘蛛池模板: 龙江县| 枣强县| 九江县| 张家川| 宜兰市| 沾益县| 共和县| 桐柏县| 南投市| 木里| 三明市| 阜平县| 内江市| 舒兰市| 和田县| 扎鲁特旗| 东乡| 青河县| 青州市| 永仁县| 安泽县| 楚雄市| 洪泽县| 锦屏县| 金华市| 沙坪坝区| 汽车| 新民市| 湟源县| 黄龙县| 河南省| 荆州市| 开江县| 贡嘎县| 宽甸| 赞皇县| 浮梁县| 伊川县| 睢宁县| 烟台市| 乌拉特前旗|