<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[前端小愤青]]></title><description><![CDATA[Talking is cheap，show me a code]]></description><link>https://blog.csdn.net/qq_37674616</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_37674616]]></copyright><item><title><![CDATA[[你需要了解的中间件]阅读koa-compose后的感悟]]></title><link>https://blog.csdn.net/qq_37674616/article/details/115253218</link><guid>https://blog.csdn.net/qq_37674616/article/details/115253218</guid><author>qq_37674616</author><pubDate>Fri, 26 Mar 2021 21:06:06 +0800</pubDate><description><![CDATA[前篇
关于compose函数对于学过函数编程一定不陌生。在 redux 中也有应用。下面我们来实现一个 compose。场景:我们有三个函数,现在想要实现 1+2+3+4 结果。
const addOne = (num: number) =&gt; {
  console.log('addOne input value', num);
  return num + 1;
};
const addTwo = (num: number) =&gt; {
  console.log('addTwo input v]]></description><category></category></item><item><title><![CDATA[[面试基础题]控制红绿灯]]></title><link>https://blog.csdn.net/qq_37674616/article/details/115237825</link><guid>https://blog.csdn.net/qq_37674616/article/details/115237825</guid><author>qq_37674616</author><pubDate>Fri, 26 Mar 2021 12:44:56 +0800</pubDate><description><![CDATA[js版 实现红绿灯
题目:

默认情况下，红灯亮20秒，并且最后5秒闪烁绿灯亮20秒，并且最后5秒闪烁黄灯亮10秒，
次序为：红-绿-黄-红-绿-黄
灯的个数、颜色、持续时间、闪烁时间、灯光次序都可配置，如：lights=[{color: ‘#fff’, duration: 10000, twinkleDuration: 5000}, … ]

js版
function sleep(duration) {
  return new Promise((resolve) =&gt; {
    setTimeo]]></description><category></category></item><item><title><![CDATA[[Hox库状态管理思考 二] 类实现组件的数据订阅]]></title><link>https://blog.csdn.net/qq_37674616/article/details/115012507</link><guid>https://blog.csdn.net/qq_37674616/article/details/115012507</guid><author>qq_37674616</author><pubDate>Fri, 19 Mar 2021 17:58:22 +0800</pubDate><description><![CDATA[上文我们分析了hox 如何将 custom hooks提升到全局
阅读hox对状态管理的思考

类组件的数据订阅
前篇
首先我们来说下HOC。它是一种复用组件逻辑技巧。

高阶组件是参数为组件,返回值为新组件的函数

const EnhancedComponent = higherOrderComponent(WrappedComponent);

下面举例说明:
首先我们有一个Counter类组件如下:
interface IProps{
    count:number;
    add:()=&gt.]]></description><category></category></item><item><title><![CDATA[[必须要了解的React状态管理]阅读hox对状态管理的思考]]></title><link>https://blog.csdn.net/qq_37674616/article/details/114810664</link><guid>https://blog.csdn.net/qq_37674616/article/details/114810664</guid><author>qq_37674616</author><pubDate>Mon, 15 Mar 2021 17:50:29 +0800</pubDate><description><![CDATA[阅读 hox对状态管理的思考

对于react 状态管理已经是老生畅谈的话题，官方没有给出最佳实践因此市面上关于状态管理的探索从未停止过。

本文就 hox库探索做一个总结，建议按本文顺序阅读。
开篇
组件状态定义
对于 hooks推出之后,对于状态定义也更加灵活，下面关于组件定义状态如下:
function Counter() {
 const [count, setCount] = useState(0)
 return (
   &lt;div&gt;
     &lt;p&gt;count:{cou]]></description><category></category></item><item><title><![CDATA[Typescript 实践中问题总结]]></title><link>https://blog.csdn.net/qq_37674616/article/details/114696977</link><guid>https://blog.csdn.net/qq_37674616/article/details/114696977</guid><author>qq_37674616</author><pubDate>Fri, 12 Mar 2021 15:20:41 +0800</pubDate><description><![CDATA[文章目录关于类型收缩类型断言类型守卫双重断言常用工具函数PartialReadonlyRecordPickOmitExcludeExtractReturnTypeUnknown vs Any区别Void vs  Never 区别Type vs Interface 区别
关于类型收缩

摘取案例出处

类型断言
interface Foo {
  bar: number;
  bas: string;
}

const foo = {} as Foo;
foo.bar = 123;
foo.bas = 'he]]></description><category></category></item><item><title><![CDATA[[需要了解的] node模块加载浅析]]></title><link>https://blog.csdn.net/qq_37674616/article/details/114342141</link><guid>https://blog.csdn.net/qq_37674616/article/details/114342141</guid><author>qq_37674616</author><pubDate>Thu, 04 Mar 2021 00:07:10 +0800</pubDate><description><![CDATA[node模块加载浅析

通过分析require 加载模块流程,实现简易版本,本文环境 node v15.4.0

调试数据
// main.js

require('./test');

// test.js
let a=1;
console.log(this===module.exports,'this');
module.exports=a;

** 提示: vscode 断点调试要进入源码文件需要将 launch.json 中 skipFiles文件注释。
 // "skipFiles": [
 //]]></description><category></category></item><item><title><![CDATA[promsie实现与并发队列控制解析]]></title><link>https://blog.csdn.net/qq_37674616/article/details/113096520</link><guid>https://blog.csdn.net/qq_37674616/article/details/113096520</guid><author>qq_37674616</author><pubDate>Sun, 24 Jan 2021 20:33:22 +0800</pubDate><description><![CDATA[源码地址

从一个简单案例讲起

promise 基本概念

????
console.log('1. start');
const promise=new Promise((resolve,reject)=&gt;{
  console.log('2. enter Executor');
  resolve('hello promise');
})

promise.then(res=&gt;{
  console.log(res,'success');
  console.log('4. resolve]]></description><category></category></item><item><title><![CDATA[【需要了解的FLIP】FLIP动画在 react中的应用]]></title><link>https://blog.csdn.net/qq_37674616/article/details/109390537</link><guid>https://blog.csdn.net/qq_37674616/article/details/109390537</guid><author>qq_37674616</author><pubDate>Sun, 01 Nov 2020 23:17:24 +0800</pubDate><description><![CDATA[本文翻译自 FLIP animation in react

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-a4YHrSjn-1604052655260)(https://github.com/aholachek/react-flip-toolkit/raw/master/example-assets/listanimations.gif)]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-21L53RZZ-1604052655262)(htt.]]></description><category></category></item><item><title><![CDATA[React项目中 那些实用的TS技巧]]></title><link>https://blog.csdn.net/qq_37674616/article/details/107501678</link><guid>https://blog.csdn.net/qq_37674616/article/details/107501678</guid><author>qq_37674616</author><pubDate>Sun, 06 Sep 2020 22:03:45 +0800</pubDate><description><![CDATA[⚠️⚠️⚠️ 文章来源与网络中知识总结与提炼，想要了解更多点击文末中链接自行了解

文章目录组件默认值联合类型应用函数组件中应用范型渲染children自定义hooks返回值links
组件默认值
//function component
type GreetProps = { age: number } &amp; typeof defaultProps;
const defaultProps = {
  age: 21,
};

const Greet = (props: GreetProps) =&.]]></description><category></category></item><item><title><![CDATA[Redux源码学习篇(二) -- react-redux实现]]></title><link>https://blog.csdn.net/qq_37674616/article/details/106887934</link><guid>https://blog.csdn.net/qq_37674616/article/details/106887934</guid><author>qq_37674616</author><pubDate>Sun, 21 Jun 2020 20:55:51 +0800</pubDate><description><![CDATA[本文会逐步探索redux到应用分为3个系列

redux 实现
react-redux 实现
redux中间件的应用与实现


文章目录作用核心实现ProviderConnect反思
作用
它帮助我们连接UI层和数据层。即帮我们合并一些重复操作即获取状态getState、修改状态dispatch、订阅更新subscribe。因此提供了两个核心API:

Provider: 接收 store,并将其挂载到context上，目的是为了后代组件获取状态
Connect: 将 state、props传递组件并自动.]]></description><category></category></item><item><title><![CDATA[[你必须掌握的] 多种实现 flatten 函数的方法]]></title><link>https://blog.csdn.net/qq_37674616/article/details/105985033</link><guid>https://blog.csdn.net/qq_37674616/article/details/105985033</guid><author>qq_37674616</author><pubDate>Fri, 08 May 2020 00:14:15 +0800</pubDate><description><![CDATA[arr =[1,2,3,[7,9],[8,9,[10,1]]]


使用 flat函数本身

arr.flat(Infinity)


采用 数组字符串特性

arr.join().split(',').map(Number)


采用 迭代

const flatten=arr=&gt;{
	const result=[]
	while(arr.some(item=&gt;Array.isAr...]]></description><category></category></item><item><title><![CDATA[[RxJS 学习之旅] 实现简易RxJS]]></title><link>https://blog.csdn.net/qq_37674616/article/details/105031207</link><guid>https://blog.csdn.net/qq_37674616/article/details/105031207</guid><author>qq_37674616</author><pubDate>Sat, 28 Mar 2020 20:37:46 +0800</pubDate><description><![CDATA[本片文章主要通过实现RxJs一些简单操作符，来进一步了解RxJs

本篇文章可以学到什么?

深入了解Observable
js 基础知识(类、原型)

揭开Observable面纱
Observable 即RxJs世界中的生产者:

它其实是一个构造函数并接收订阅者的参数，
提供实例方法让其可以订阅(forEach)

function Observable(forEach){
    thi...]]></description><category></category></item><item><title><![CDATA[[RxJS学习之旅] 之宏观了解基本概念与使用]]></title><link>https://blog.csdn.net/qq_37674616/article/details/103267198</link><guid>https://blog.csdn.net/qq_37674616/article/details/103267198</guid><author>qq_37674616</author><pubDate>Thu, 19 Mar 2020 23:23:44 +0800</pubDate><description><![CDATA[文章目录基本概念被观察对象(Observable)pull与push特性核心概念观察者(Observer)Subscription操作符(Operators)SubjectSchedulersmap 实现与分析原型上添加通过 pipe 组合
基本概念
被观察对象(Observable)
pull与push
pull和push 是两种不同的协议,它们描述了数据生产者(Producer)如何数据消费者...]]></description><category></category></item><item><title><![CDATA[[RxJS学习之旅] 之 操作符]]></title><link>https://blog.csdn.net/qq_37674616/article/details/103497764</link><guid>https://blog.csdn.net/qq_37674616/article/details/103497764</guid><author>qq_37674616</author><pubDate>Thu, 19 Mar 2020 23:14:20 +0800</pubDate><description><![CDATA[操作符
操作符就是在 subscribe接上一个Observer之前的一系列数据处理。并且每一个操作都是返回一个全新的Observable对象的函数。
import {Observable} from  'rxjs'
import {map} from 'rxjs/operators'

const onSubscribe=observer=&gt;{
    observer.next(1);
...]]></description><category></category></item><item><title><![CDATA[[你应该掌握的] 基本函数的应用与实现]]></title><link>https://blog.csdn.net/qq_37674616/article/details/104979559</link><guid>https://blog.csdn.net/qq_37674616/article/details/104979559</guid><author>qq_37674616</author><pubDate>Thu, 19 Mar 2020 23:09:40 +0800</pubDate><description><![CDATA[文章来源于learnrx,最近在学习Rx觉得下面这些函数对于日常开发很有帮助因此:code share you,由于能力有限如有错误轻轻踩～

本文目标 ????

掌握 forEach、map、filter、concatAll、reduce、zip 实现
通过上述函数组合解决实际问题

文章目录本文目标 ????forEachmapfilterconcatAll实现 concatAll案例一案例二resu...]]></description><category></category></item><item><title><![CDATA[[20年必须要了解的] graphQL]]></title><link>https://blog.csdn.net/qq_37674616/article/details/103721645</link><guid>https://blog.csdn.net/qq_37674616/article/details/103721645</guid><author>qq_37674616</author><pubDate>Wed, 08 Jan 2020 10:11:33 +0800</pubDate><description><![CDATA[什么是GraphQL?

新的API标准、它由Facebook 2015年开源
声明式数据获取
GraphQL服务公开单个端点并相应查询
可以与任何编程语言和框架一起使用

与 REST对比优势

按需获取数据
前端的快速产品迭代
对于后端请求的数据有更细致的了解
强类型系统定义API的功能



???? 要了解有关使用GraphQL的主要原因更多信息  click this


...]]></description><category></category></item><item><title><![CDATA[mac实用工具]]></title><link>https://blog.csdn.net/qq_37674616/article/details/103828211</link><guid>https://blog.csdn.net/qq_37674616/article/details/103828211</guid><author>qq_37674616</author><pubDate>Fri, 03 Jan 2020 23:22:41 +0800</pubDate><description><![CDATA[收藏 mac 好用的工具 ????????????



Alfred4: 为mac而生的可通过热键，关键字，文本扩展等功能提高效率。


ITerm2:终端管理,  ????推荐文章


IINA :看视频神奇任何格式都可以播放，功能便捷


keka：解压缩


欧陆词典: App Store 版本完全免费，用了你就会爱上它


Cheat Sheet： 快捷键


Spectacle ：窗口排列


Itsyca...]]></description><category></category></item><item><title><![CDATA[告别2019，展望2020]]></title><link>https://blog.csdn.net/qq_37674616/article/details/103775277</link><guid>https://blog.csdn.net/qq_37674616/article/details/103775277</guid><author>qq_37674616</author><pubDate>Mon, 30 Dec 2019 23:38:00 +0800</pubDate><description><![CDATA[告别过去
生活

4月4号 搬家
4月21号 家里7k
6月1号 购买18版 mac pro（13k）
6月27号 毕业
7月15号 上海览逸离职
7月16号 入职 上海得逸信息
9月13号 购买sony WI-1000x(1.5k)
9月28号 开通 edu frontendMaster 会员半年
12月17号 给家里3w

学习
制订的学习计划分为回顾、探索、务实路线。
回顾：该路线主要是巩固...]]></description><category></category></item><item><title><![CDATA[React Hooks 版实现 Redux]]></title><link>https://blog.csdn.net/qq_37674616/article/details/103736146</link><guid>https://blog.csdn.net/qq_37674616/article/details/103736146</guid><author>qq_37674616</author><pubDate>Fri, 27 Dec 2019 17:37:24 +0800</pubDate><description><![CDATA[React-hook版 状态管理

使用React Hooks和Context API模拟实现 Redux

在React世界中,考虑状态管理时想到第一个想法就是使用Redux库。
Redux提供了一个可预测的状态容器来集中应用程序的全局存储。借助connect,mapStateToProps,mapDispatchToProps和bindActionsCreator。Redux可以轻松创建和管理...]]></description><category></category></item><item><title><![CDATA[构建自定义的GraphQL类型]]></title><link>https://blog.csdn.net/qq_37674616/article/details/103714267</link><guid>https://blog.csdn.net/qq_37674616/article/details/103714267</guid><author>qq_37674616</author><pubDate>Thu, 26 Dec 2019 14:03:05 +0800</pubDate><description><![CDATA[本文翻译一篇 如何去构建自定义 GraphQL类型,如果有帮助请点个赞

文章目录创建 server自定义 scalar错误处理
GraphQL可以控制我们的schema和API返回值一样。我们可以输入所有内容,如果输入的不是我们期望的则会出现错误。这样会使我们对返回的内容更加自信，这真的太神奇了。但是默认情况下GraphQL只附带一些基本类型。
GraphQL基本类型:String、Int、F...]]></description><category></category></item></channel></rss>