- ReactJS by Example:Building Modern Web Applications with React
- Vipul A M Prathamesh Sonpatki
- 130字
- 2021-07-09 19:37:01
Chapter 3. Data Flow and Life Cycle Events
In the previous chapter, we saw the power of JSX. JSX makes it easy to write the React components.
In this chapter, we will focus on the data flow between components and how to manage state and life cycle of components.
In this chapter, we will cover the following points:
- Data flow in React
- Props
- PropTypes
- State
- State versus props
- When to use state and props
- Component life cycle overview
- Component life cycle methods
At the end of the chapter, we will get familiar with the data flow in the React components and the ways of maintaining and managing state. We will also get used to the life cycle of a component and various life cycle hooks provided by React.
推薦閱讀
- SQL Server 從入門到項目實踐(超值版)
- 數據科學實戰手冊(R+Python)
- 精通JavaScript+jQuery:100%動態網頁設計密碼
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- Backbone.js Blueprints
- 精通網絡視頻核心開發技術
- SQL Server從入門到精通(第3版)
- Azure Serverless Computing Cookbook
- GameMaker Essentials
- Red Hat Enterprise Linux Troubleshooting Guide
- MyBatis 3源碼深度解析
- Learning Unreal Engine Game Development
- 算法超簡單:趣味游戲帶你輕松入門與實踐
- C#程序開發參考手冊
- 趣學數據結構