This website works better with JavaScript.
Explore
Help
Register
Sign In
YuJian
/
Obsidian_Note
Watch
1
Star
0
Fork
You've already forked Obsidian_Note
0
Code
Releases
Activity
Obsidian 管理的个人笔记仓库
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
639
Commits
2
Branches
0
Tags
8.0 MiB
JavaScript
99.7%
CSS
0.3%
Tree:
1ed149d5ec
Canvas
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '1ed149d5ec'
${ noResults }
Obsidian_Note
/
React 设计模式与最佳实践
/
组件实践.md
231 B
Raw
Blame
History
在设计 React 组件时,要注意以下原则:
保持接口小,props 数量要少;
根据数据边界来划分组件,充分利用组合 (composition);
状态提升,让下层组件尽量只是一个纯函数