https://github.com/geekeast/social-media-dev-app
https://github.com/geekeast/social-media-dev-app
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/geekeast/social-media-dev-app
- Owner: GeekEast
- Created: 2020-02-26T11:55:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T08:21:45.000Z (over 2 years ago)
- Last Synced: 2025-03-02T12:17:28.285Z (about 2 months ago)
- Language: TypeScript
- Size: 6.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 零碎
- `Types`实际上分两种: 一种是`action动词`(**LOGOUT**),一种是`状态名字`(**LOGIN_SUCCESS**)
- 在浏览器**敲回车**到另外一个route,实际上会刷新页面,`重置store`
- `#!` 无链接的`link`
- 快速创建**functional component** `racfe`### 调研
- 在完全受控的子组件中传入的函数
- 在组件外定义,reference必须相同
- 在组件内定义: 要用useCallback进行mutable化, 使得引用相同
- `immutable data, mutable function`### 参考
- [正交的React组件](https://zhuanlan.zhihu.com/p/96084784)
- [React, Redux, and Context Behavior](https://blog.isquaredsoftware.com/2020/01/blogged-answers-react-redux-and-context-behavior/)