- 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.
推薦閱讀
- Rake Task Management Essentials
- DevOps入門與實踐
- 快速念咒:MySQL入門指南與進階實戰(zhàn)
- INSTANT Adobe Edge Inspect Starter
- HoloLens與混合現(xiàn)實開發(fā)
- Java并發(fā)編程之美
- 軟件工程基礎(chǔ)與實訓教程
- Application Development with Swift
- Python Machine Learning Cookbook
- Java高手是怎樣煉成的:原理、方法與實踐
- 編寫高質(zhì)量代碼之Java(套裝共2冊)
- MonoTouch應用開發(fā)實踐指南:使用C#和.NET開發(fā)iOS應用
- Node.js核心技術(shù)教程
- LiveCode Mobile Development Hotshot
- Ionic Framework By Example