- 前端知识总结 0 💬
- 网站工具Api搜集整理 0 💬
- Flutter 学习整理 1 💬
Typescripts 总结 0 💬 2021-06-29 08:22:54
🏷️ : 面试, typescript
条件类型
type B<T> = T extends string ? '1' : '2'
const a: B<s
[更多>>>](https://github.com/hsipeng/note/issues/96)
---
#### [前端知识总结](https://github.com/hsipeng/note/issues/95) <sup>0 :speech_balloon:</sup> 2020-08-08 08:40:10
:label: : [面试](https://github.com/hsipeng/note/labels/%E9%9D%A2%E8%AF%95), [前端](https://github.com/hsipeng/note/labels/%E5%89%8D%E7%AB%AF), [:+1:置顶](https://github.com/hsipeng/note/labels/%3A%2B1%3A%E7%BD%AE%E9%A1%B6)
自己整理出来的针对 P6 级别的前端知识体系
欢迎批评指正
地址是➡️ [http://hsipeng.github.io/fed](http://hsipeng.github.io/fed)
[更多>>>](https://github.com/hsipeng/note/issues/95)
---
#### [Redux 实现原理](https://github.com/hsipeng/note/issues/94) <sup>0 :speech_balloon:</sup> 2020-05-12 16:27:43
:label: : [react](https://github.com/hsipeng/note/labels/react), [redux](https://github.com/hsipeng/note/labels/redux)
```javascript
function createStore(reducer, state = null){
let listeners = [];
let getState = () => state;
let subscribe = listener =>
[更多>>>](https://github.com/hsipeng/note/issues/94)
---
#### [ssl 生成 ssl 证书](https://github.com/hsipeng/note/issues/93) <sup>0 :speech_balloon:</sup> 2020-05-12 15:30:58
:label: : [linux](https://github.com/hsipeng/note/labels/linux), [ssl](https://github.com/hsipeng/note/labels/ssl)
## nginx 安装
sudo apt get install nginx
nginx 配置
server { listen 80 default; server_name domain; location / {
React 单元测试 0 💬 2019-09-16 08:17:22
- 单元测试对于任何 React 项目(及其他任何项目)来说都是必须的
- 我们需要自动化的测试套件,根本目标是支持随时随地的代码调整、持续改进,从而提升团队响应力
- 使用 TDD 开发是得到好的单元测试的唯一途径
- 好的单元测试具备几大特征:不关注内部实现 更多>>>