react-src-study:React原始解析-源码解析

上传者: 42133415 | 上传时间: 2021-03-24 21:07:14 | 文件大小: 907KB | 文件类型: ZIP
React原始解析 从复制 在开始想写本书之前,我已经花了将近一个月的时间阅读React的源码,在真正做之前,我一直觉得这不会是一件很难的事情,但是到真正开始阅读之后,我才发现,事情并没有我想的那么简单。 阅读原始码的关键是你要去猜一开始开发者为什么会这么去设计,而一个开源框架和单纯的一个前端项目的代码差异很大,设计的角度也是非常不同的,你不能用开发项目的思维去考虑一个开源框架的设计初衷。更多不用说因为自己眼界的问题,一些之前自己基本没用过代码写法,在源码中看到的时候着实有点一脸懵逼。关于TypeOfMode的设计的时候 export const NoContext = 0b000 export const AsyncMode = 0b001 export const StrictMode = 0b010 export const ProfileMode = 0b100 一开始根本没有Re

文件下载

资源详情

[{"title":"( 66 个子文件 907KB ) react-src-study:React原始解析-源码解析","children":[{"title":"react-src-study-master","children":[{"title":"other","children":[{"title":"react-expiration-time-demo-simple.png <span style='color:#111;'> 15.04KB </span>","children":null,"spread":false},{"title":"react-expiration-time-demo-pendingTime.png <span style='color:#111;'> 23.10KB </span>","children":null,"spread":false},{"title":"work_Loop-v2.png <span style='color:#111;'> 13.06KB </span>","children":null,"spread":false},{"title":"scheduler-fiber-scheduler.png <span style='color:#111;'> 126.71KB </span>","children":null,"spread":false},{"title":"react-children-map.png <span style='color:#111;'> 35.08KB </span>","children":null,"spread":false},{"title":"react-expiration-time-demo-child-expiration-time.png <span style='color:#111;'> 21.53KB </span>","children":null,"spread":false},{"title":"React.graffle <span style='color:#111;'> 284.26KB </span>","children":null,"spread":false},{"title":"placeholder.png <span style='color:#111;'> 8.63KB </span>","children":null,"spread":false},{"title":"scheduler-render-root.png <span style='color:#111;'> 149.00KB </span>","children":null,"spread":false},{"title":"React.xmind <span style='color:#111;'> 176.41KB </span>","children":null,"spread":false}],"spread":true},{"title":"2.render&update","children":[{"title":"2.1.ReactDOM.render.md <span style='color:#111;'> 5.36KB </span>","children":null,"spread":false},{"title":"2.2.setState&forceUpdate.md <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"2.3.expirationTime.md <span style='color:#111;'> 18.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"1.basic","children":[{"title":"1.3.React Children.md <span style='color:#111;'> 5.33KB </span>","children":null,"spread":false},{"title":"1.1.React API.md <span style='color:#111;'> 5.66KB </span>","children":null,"spread":false},{"title":"1.4.React Structure.md <span style='color:#111;'> 11.02KB </span>","children":null,"spread":false},{"title":"1.2.ReactElement.md <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"6.hooks","children":[{"title":"6.1.start.md <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"6.2.useState.md <span style='color:#111;'> 10.32KB </span>","children":null,"spread":false},{"title":"6.3.useEffect.md <span style='color:#111;'> 6.95KB </span>","children":null,"spread":false},{"title":"6.4.other api.md <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false},{"title":"6.5.common api.md <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"4.commit-task","children":[{"title":"4.4.commitAllHostEffects.md <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"4.1.commitRoot.md <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"4.4.3.commitDeletion.md <span style='color:#111;'> 5.42KB </span>","children":null,"spread":false},{"title":"4.4.2.commitWork.md <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"4.3.commitBeforeMutationLifecycles.md <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"4.4.1.commitPlacement.md <span style='color:#111;'> 4.93KB </span>","children":null,"spread":false},{"title":"4.5.commitAllLifeCycles.md <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"4.2.invokeGuardedCallback.md <span style='color:#111;'> 5.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"5.function","children":[{"title":"5.6.event dispatch.md <span style='color:#111;'> 7.77KB </span>","children":null,"spread":false},{"title":"5.8.Suspense.md <span style='color:#111;'> 11.23KB </span>","children":null,"spread":false},{"title":"5.7.event create.md <span style='color:#111;'> 5.81KB </span>","children":null,"spread":false},{"title":"5.3.ref.md <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"5.2.hydrate.md <span style='color:#111;'> 11.38KB </span>","children":null,"spread":false},{"title":"5.1.context.md <span style='color:#111;'> 8.42KB </span>","children":null,"spread":false},{"title":"5.9.suspense.md <span style='color:#111;'> 5.18KB </span>","children":null,"spread":false},{"title":"5.5.event bind.md <span style='color:#111;'> 5.72KB </span>","children":null,"spread":false},{"title":"5.4.event initial.md <span style='color:#111;'> 4.44KB </span>","children":null,"spread":false},{"title":"5.10.lazy component.md <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"3.scheduler-task","children":[{"title":"3.7.2.mountLazyCompont.md <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"3.8.2.reconcileChildrenArray.md <span style='color:#111;'> 7.41KB </span>","children":null,"spread":false},{"title":"3.7.3.updateFunctionalComponent.md <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"3.6.1.throwException.md <span style='color:#111;'> 10.25KB </span>","children":null,"spread":false},{"title":"3.8.reconcileChildren.md <span style='color:#111;'> 4.58KB </span>","children":null,"spread":false},{"title":"3.7.12.updateProfiler.md <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"3.7.14.updateContextConsumer.md <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"3.5.performUnitOfWork.md <span style='color:#111;'> 18.62KB </span>","children":null,"spread":false},{"title":"3.7.13.updateContextProvider.md <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"3.7.1.mountIndeterminateComponent.md <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"3.7.7.updateHostText.md <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"3.7.10.updateFragment.md <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"3.7.4.updateClassComponent.md <span style='color:#111;'> 16.92KB </span>","children":null,"spread":false},{"title":"3.3.react-scheduler.md <span style='color:#111;'> 11.23KB </span>","children":null,"spread":false},{"title":"3.8.1.reconcileSingleElement.md <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"3.2.scheduleWork.md <span style='color:#111;'> 8.46KB </span>","children":null,"spread":false},{"title":"3.7.beginWork.md <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false},{"title":"3.7.9.updateForwardRef.md <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"3.7.11.updateMode.md <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"3.1.Global Variable.md <span style='color:#111;'> 7.10KB </span>","children":null,"spread":false},{"title":"3.6.renderRoot.md <span style='color:#111;'> 11.79KB </span>","children":null,"spread":false},{"title":"3.7.6.updateHostComponent.md <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"3.7.5.updateHostRoot.md <span style='color:#111;'> 8.08KB </span>","children":null,"spread":false},{"title":"3.7.8.updatePortalComponent.md <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"3.4.performWork.md <span style='color:#111;'> 10.52KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明