17
头图
As the saying goes, "good memory is not as good as bad writing". Today, adhering to the attitude of convenience for later review, I compiled a basic knowledge of React and presented it in a mind map, so that it is convenient to check and fill in the gaps with the old iron. "React" complete mind map is also available! ! !

React.png

1. Project initialization

项目初始化1.png

Second, the UI level

UI层面2.png

2.1 JSX basics

JSX基础2_1.png

2.2 Advanced

2.2.1 Event handling

事件处理2_2_1.png

2.2.2 Conditional rendering

条件渲染2_2_2.png

2.2.3 List

列表2_2_3.png

2.2.4 Form

表单2_2_4.png

Three, components

组件3.png

3.1 class component

3.1.1 The use of class components must meet the conditions

使用class组件需满足条件3_1.png

3.1.2 Related attribute methods

相关属性方法3_2.png

3.1.3 Life cycle graph

生命周期图谱3_3.png

3.2 function component

function组件3_4.png

3.2.1 HOOK

HOOK3_5.png

3.2.1.1 Functions

函数3_6.png

3.2.1.2 HOOK rules

HOOK规则3_7.png

3.2.1.3 Custom HOOK

自定义Hook3_9.png

3.3 High-end components

高阶组件3_10.png

Fourth, the data level

数据层面4.png

Five, important packages

重要包5.png

Sixth, perception

In the process of sorting out these basic knowledge points, I have the following insights, which are not necessarily correct, share them and discuss with you:
  1. Many functions in React are not used much in development. For example, Redux+props can meet many needs in terms of data transmission, and only useState, useEffect, etc. are commonly used in Hooks. Some of the functions implemented are only to satisfy the integrity of the entire framework. sex;
  2. The emergence of HOOK basically allows function components to dominate the world, without the need to use class components;
  3. The framework is constantly evolving in an increasingly simpler direction.

1. If you think this article is good, share it, like it, and let more people see it

2. Welcome to pay attention to the front-end point, line and surface open the road to programming salvation.


执鸢者
1.7k 声望2.5k 粉丝

摸摸头,编程使我快乐。