mirror of
				https://github.com/KieSun/all-of-frontend.git
				synced 2025-05-29 01:49:23 +08:00 
			
		
		
		
	Merge pull request #76 from yuhaiyang1/feature/add_react
feat: 新增 react hoc 知识
This commit is contained in:
		
						commit
						d474c98500
					
				
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							@ -399,6 +399,18 @@ CSS 选择器是 CSS 规则的第一部分。它是元素和其他部分组合
 | 
			
		||||
  - [ ] [受控和非受控组件真的那么难理解吗](https://juejin.cn/post/6858276396968951822)
 | 
			
		||||
  - [ ] [[译]受控组件 & 非受控组件](https://www.baobangdong.cn/controlled-components-and-uncontrolled-components/)
 | 
			
		||||
 | 
			
		||||
### 高阶组件(HOC)
 | 
			
		||||
高阶组件(HOC)是 React 中用于复用组件逻辑的一种高级技巧。HOC 自身不是 React API 的一部分,它是一种基于 React 的组合特性而形成的设计模式。
 | 
			
		||||
 | 
			
		||||
具体而言,高阶组件是参数为组件,返回值为新组件的函数。
 | 
			
		||||
 | 
			
		||||
* [ ] 文档
 | 
			
		||||
  - [ ] [React 官方文档](https://reactjs.org/docs/higher-order-components.html)
 | 
			
		||||
* [ ] 推荐文章
 | 
			
		||||
  - [ ] [React 高阶组件(HOC)入门指南](https://github.com/MrErHu/blog/issues/4)
 | 
			
		||||
  - [ ] [hoc 库 recompose](https://github.com/acdlite/recompose)
 | 
			
		||||
  - [ ] [精读 React 高阶组件](https://zhuanlan.zhihu.com/p/27434557)
 | 
			
		||||
 | 
			
		||||
### 原理
 | 
			
		||||
 | 
			
		||||
- [react-source-code-debug](https://github.com/neroneroffy/react-source-code-debug),学习如何调试源码
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user