- The React Workshop
- Brandon Richey Ryan Yu Endre Vegh Theofanis Despoudis Anton Punith Florian Sloot
- 254字
- 2021-06-11 18:28:29
Summary
It is important to understand the many moving pieces involved in building React projects, as each one lends itself well to the context and decisions made when building React. Understanding the historical context helps frame the questions around why implementing some things in React is the way it is. In addition, understanding how to use the Create React App framework helps you get moving faster and building new projects with less fuss and effort, making it a critical part of your development workflow.
We also now have a strong understanding of the basic building blocks of any React component, regardless of the level of complexity. We can define small, lightweight components using functional syntax, which is a very common idiom in modern React development. We can also define larger, stateful components using class syntax, which also helps us plan for and architect our more complicated React components in ways that are easy to develop on, maintain, and support over the long term.
Ultimately, the hardest part is just knowing when to use one or the other, and that decision just boils down to if you need helper functions or state. If so, you should probably use a class-based component and not a functional component, otherwise, use the lighter components. In the next chapter, we will build upon this base layer in much greater detail, creating a strong foundation on which we will build some very complex React projects from start to finish on top of the knowledge that you have gained here.
- Practical Data Analysis Cookbook
- Java系統分析與架構設計
- 計算機圖形學編程(使用OpenGL和C++)(第2版)
- Getting Started with PowerShell
- 深入理解Java7:核心技術與最佳實踐
- 正則表達式經典實例(第2版)
- Hands-On Natural Language Processing with Python
- 用戶體驗增長:數字化·智能化·綠色化
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- Hands-On Neural Network Programming with C#
- Apache Camel Developer's Cookbook
- Learning Splunk Web Framework
- UI設計基礎培訓教程(全彩版)
- Spark技術內幕:深入解析Spark內核架構設計與實現原理
- Vue.js 3.x高效前端開發(視頻教學版)