Front-end/react/qf/1.md

46 lines
696 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 特性
1. 声明式
2. 虚拟bom
3. 单向流
# 学习内容十项
1. react基础
2. react hooks
3. react 路由
4. react redux
5. 组件库
6. immutable
7. Mobx
8. react+ts
9. 单元测试
10. dva+umi
# 虚拟bom
例如刷朋友圈新来的数据和现有的数据比较处理而不是清空后重新加载减少dom操作。
# 包管理
## nvm
node version manage
## npm
node package manage
## nrm
node remote manage
![](img/nrm微信截图_20231024104526.png)
# jsx
javascript+xml
# 快捷键智能检测插件
ES7 React/Redux/GraphQL/React-Native snippets
# 行内式函数组件
```javascript
const Bar = ()=>{<div>123</div>}
```
# 模板语法规则读取js信息
{}