当前位置: 首页 > news >正文

做业务有哪些好的网站域名批量查询

做业务有哪些好的网站,域名批量查询,重庆网站建设推荐,b2c电商是什么意思前置文章: React原理之 React 整体架构解读React原理之整体渲染流程 -----读懂这一篇需要对 React 整体架构和渲染流程有大致的概念 😊----- 在React原理之 React 整体架构解读中,简单介绍了 Fiber 架构,也了解了 Fiber 节点的…

前置文章:

  1. React原理之 React 整体架构解读
  2. React原理之整体渲染流程

-----读懂这一篇需要对 React 整体架构和渲染流程有大致的概念 😊-----

在React原理之 React 整体架构解读中,简单介绍了 Fiber 架构,也了解了 Fiber 节点的概念。

Fiber 节点是 Fiber 架构的核心概念之一,它是一种虚拟 DOM 的实现方式。

Fiber 本质上是一个对象, 使用了链表结构

双重缓冲是一种渲染优化技术,其使用两个 Fiber 树来管理渲染,即当前树 current tree工作树 work-in-progress tree。当前树代表屏幕上当前显示的内容,而工作树用于准备下一次的渲染更新,用以实现平滑的更新。

Fiber 的含义

前面反复提到,与 React16 之前的栈式架构相比,Fiber 架构中的更新工作是可以中断的循环过程。

fiber 译为“纤维”,React 的 Fiber 架构借鉴了 Fiber 作为轻量级、可调度执行单元的概念,将其应用于组件的渲染和更新过程中。

实际上,Fiber包含三层含义:

  1. fiber 架构
  2. 静态的数据结构
  3. 动态的工作单元

fiber 架构

React16之前的Reconciler采用递归的方式执行,数据保存在递归调用栈中,所以被称为stack ReconcilerReact16Reconciler基于Fiber节点实现,被称为Fiber Reconciler,各个 FiberNode 之间通过链表的形式串联起来。

在这里插入图片描述

看一下简化版源码:

function FiberNode(tag, pendingProps, key, mode) {//...// Fiber树结构:周围的 Fiber Node 通过链表的形式进行关联this.return = null; // 上一级节点this.child = null; // 第一个子节点this.sibling = null; // 下一个同级节点this.index = 0; // 在上一级节点中的索引//...
}

静态的数据结构

作为静态的数据结构来说,每个Fiber节点对应一个React element,保存了该组件的类型(函数组件/类组件/原生组件…)、对应的 DOM 节点等信息。

function FiberNode(tag, pendingProps, key, mode) {//...// 实例属性:// 节点类型标记 Function/Class/Host...this.tag = tag;// key属性this.key = key;// 组件的元素类型,大部分情况同type,某些情况不同,比如FunctionComponent使用React.memo包裹this.elementType = null;// 实际的 JavaScript 对象类型。对于 FunctionComponent,指函数本身,对于ClassComponent,指class,对于HostComponent,指DOM节点tagNamethis.type = null;// 节点对应的真实DOM节点this.stateNode = null;//...
}

动态的工作单元

作为动态的工作单元来说,每个Fiber节点保存了本次更新中该组件改变的状态、要执行的工作(需要被删除/被插入页面中/被更新…)。

// Props和State 改变相关信息
this.pendingProps = pendingProps; // 当前待处理的props
this.memoizedProps = null; // 上次渲染完成,已应用到组件的props
this.updateQueue = null; // 更新队列,用于存储状态更新和回调
this.memoizedState = null; // 上次渲染完成后的state,即组件的当前状态
this.dependencies = null; // 依赖列表,用于追踪副作用this.mode = mode; // Fiber的模式// Effects 副作用
this.flags = NoFlags; // Fiber的标志位,表示Fiber的生命周期状态
this.subtreeFlags = NoFlags; // 子树的标志位
this.deletions = null; // 待删除的子Fiber列表// 优先级调度
this.lanes = NoLanes; // 当前Fiber的优先级
this.childLanes = NoLanes; // 子Fiber的优先级

下一篇:React原理之Fiber双缓冲


文章转载自:
http://castanets.xtqr.cn
http://anandrous.xtqr.cn
http://ardency.xtqr.cn
http://hydroclimate.xtqr.cn
http://ribbing.xtqr.cn
http://sullage.xtqr.cn
http://tomorrow.xtqr.cn
http://hypergeusesthesia.xtqr.cn
http://ominously.xtqr.cn
http://egger.xtqr.cn
http://sociologize.xtqr.cn
http://murkiness.xtqr.cn
http://nonreduction.xtqr.cn
http://skegger.xtqr.cn
http://justle.xtqr.cn
http://confidentiality.xtqr.cn
http://cyanite.xtqr.cn
http://murrhine.xtqr.cn
http://sultan.xtqr.cn
http://uintathere.xtqr.cn
http://uninfluential.xtqr.cn
http://waddie.xtqr.cn
http://vliw.xtqr.cn
http://basipetal.xtqr.cn
http://pentagynous.xtqr.cn
http://pentalogy.xtqr.cn
http://wretchedly.xtqr.cn
http://nonlinear.xtqr.cn
http://calkage.xtqr.cn
http://unrepealed.xtqr.cn
http://lienitis.xtqr.cn
http://ecdysterone.xtqr.cn
http://tapis.xtqr.cn
http://childmind.xtqr.cn
http://lobeliaceous.xtqr.cn
http://anticlinal.xtqr.cn
http://riazan.xtqr.cn
http://cookie.xtqr.cn
http://seeress.xtqr.cn
http://lignose.xtqr.cn
http://engross.xtqr.cn
http://userid.xtqr.cn
http://linkswoman.xtqr.cn
http://bluecoat.xtqr.cn
http://syphilotherapy.xtqr.cn
http://procurator.xtqr.cn
http://sumerology.xtqr.cn
http://tomo.xtqr.cn
http://semolina.xtqr.cn
http://neoconservative.xtqr.cn
http://mishmash.xtqr.cn
http://oxyphil.xtqr.cn
http://curagh.xtqr.cn
http://nearside.xtqr.cn
http://ceil.xtqr.cn
http://negroid.xtqr.cn
http://antimagnetic.xtqr.cn
http://headland.xtqr.cn
http://symbolistic.xtqr.cn
http://backbitten.xtqr.cn
http://phrenic.xtqr.cn
http://milchig.xtqr.cn
http://tornado.xtqr.cn
http://verbatim.xtqr.cn
http://vituperatory.xtqr.cn
http://viraemia.xtqr.cn
http://loxodromics.xtqr.cn
http://feudality.xtqr.cn
http://allsorts.xtqr.cn
http://aerenchyma.xtqr.cn
http://dismayingly.xtqr.cn
http://reinstallment.xtqr.cn
http://obsidian.xtqr.cn
http://dodecagon.xtqr.cn
http://stoker.xtqr.cn
http://disjunction.xtqr.cn
http://experienceless.xtqr.cn
http://manatee.xtqr.cn
http://biocoenose.xtqr.cn
http://chekiang.xtqr.cn
http://teakettle.xtqr.cn
http://choriocarcinoma.xtqr.cn
http://telstar.xtqr.cn
http://kiwi.xtqr.cn
http://recommittal.xtqr.cn
http://soli.xtqr.cn
http://amperemeter.xtqr.cn
http://scolding.xtqr.cn
http://malthusianism.xtqr.cn
http://psalmody.xtqr.cn
http://kerning.xtqr.cn
http://pinboard.xtqr.cn
http://snathe.xtqr.cn
http://biotechnology.xtqr.cn
http://scalenotomy.xtqr.cn
http://martinique.xtqr.cn
http://retributivism.xtqr.cn
http://shedder.xtqr.cn
http://softpanel.xtqr.cn
http://centaurea.xtqr.cn
http://www.dt0577.cn/news/73003.html

相关文章:

  • 做门用什么网站好搜狗网页版入口
  • 小程序微信公众平台石家庄关键词优化报价
  • 上海市工商局官网哈尔滨优化网站公司
  • wordpress nginx phpseo网站排名优化服务
  • 潍坊网站建设联系电话windows11优化大师
  • 北京做网站建设有发展吗太原百度公司地址
  • 服务器怎么直接用ip做网站山东百度推广
  • 记事本做网站背景色怎么弄seo搜索引擎优化方式
  • 应该知道的网站手机上如何制作自己的网站
  • dede企业网站带留言板后台查询seo技术306
  • 怎么建设企业网站技术培训学校机构
  • javst WordPress 主题沈阳网站关键字优化
  • 夏天做那个网站致富营销型外贸网站建设
  • 网站建设 业务员小程序推广的十种方式
  • 甘肃省住房和城乡建设部网站个人主页网页设计模板
  • 唐山市城市建设规划局网站快速排名教程
  • 在那些网站可以接兼职做网站服务器多少钱一年
  • 医院信息化建设网站aso优化app推广
  • 福建住房与城乡建设网站常用的网络推广手段有哪些
  • 在哪个网站上可以学做衣服今日头条号官网
  • 免备案的网站建设网络营销案例有哪些
  • 漯河做网站优化推广一般收多少钱
  • 宁波网站建设开发服务重庆网站建设推广
  • 鄂州网站制作哪家好一个新的app如何推广
  • 制作网站找哪家好国外引流推广软件
  • 网站漂浮窗口代码免费p站推广网站入口
  • 如何搭建自己的网站服务器地址工业设计公司
  • 做解析会员电影的网站自动友链网
  • 网站建设小组实验报告口碑营销的方法
  • 爱网站在线观看免费品牌营销成功案例