- Progressive Web Apps with React
- Scott Domes
- 214字
- 2021-07-08 09:36:17
Getting Started with Webpack
This chapter is all about Webpack: what it is, how to use it, and why we care. However, before we dive into Webpack, I have a confession to make.
We cheated a bit in the last chapter on application setup. There’s one last piece of our folder structure we need to add--the place where our React files will live.
As we discussed in the Dependencies section of the last chapter, one of React’s killer features is the componentization of user interfaces--splitting them up into small chunks of related HTML and JavaScript. For instance, a "Save" button may be one component, sitting inside a form component, next to a Profile Information component, and so on.
The beauty of the component structure is that everything related to a particular piece of the UI sits together (separation of concerns), also, these sections are in brief, readable files. As a developer, you can easily find what you’re looking for by navigating the folder structure, rather than scrolling through a monolithic JavaScript file.
In this chapter, we'll cover the following topics:
- How to structure our React project
- Setting up Webpack
- Adding a Dev server
- Getting started with JavaScript transpilation with Babel
- Activating hot reloading
- Building for production
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設(shè)計(jì)模式
- Servlet/JSP深入詳解
- SAP BusinessObjects Dashboards 4.1 Cookbook
- Working with Odoo
- 第一行代碼 C語(yǔ)言(視頻講解版)
- 軟件測(cè)試實(shí)用教程
- 愛上micro:bit
- 軟件工程基礎(chǔ)與實(shí)訓(xùn)教程
- 深度探索Go語(yǔ)言:對(duì)象模型與runtime的原理特性及應(yīng)用
- C指針原理揭秘:基于底層實(shí)現(xiàn)機(jī)制
- C語(yǔ)言程序設(shè)計(jì)
- 軟件測(cè)試(慕課版)
- 從零開始學(xué)UI設(shè)計(jì)·基礎(chǔ)篇
- Python程序設(shè)計(jì)教程
- Raspberry Pi開發(fā)實(shí)戰(zhàn)