Leone.Y
Leone.Y
``` function grepObj(){ let arr = []; return function grepRObj(obj,id){ if(id == obj.id){ return id }else{ arr.push(obj.id); (obj.children || []).forEach(item=>{ let _id = grepRObj.call(this,item,id); if(_id){ arr.push(_id); console.log('arr => ',arr); }...
> 想问一下 ,既然已经有了FiberRoot,为啥还需要RootFiber,而且还相互引用,还是只是为了在概念上区分? 我猜可能react有更大的野心,现在是在单个dom节点上渲染,如果以后多个dom节点上渲染一些相同组件,同一个FiberRoot下面的不同RootFiber做一些相互alternate。毕竟react为了优化是做的出来的
is anyway can A(client) send message to B(client)?
docker pull chenzhaoyu94/chatgpt-web:v2.10.0 Error response from daemon: manifest for chenzhaoyu94/chatgpt-web:v2.10.0 not found