Giter VIP home page Giter VIP logo

react-design's Introduction

react-design's People

Contributors

betasu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-design's Issues

[211][1] useRender 应为 useReducer

上文6.2中列举触发状态更新的方法中讲到了 useReducer dispatcher

下文也有说到“在render阶段执行updateReducer方法”

所以这里应该要说的是 useReducer 而不是 useRender

[200][10] 事件系统捕获阶段实现不完全

详细的勘误内容:
image
建议在 const paths = collectPaths(type, fiber); 下方插入类似如下代码:

  const pathsCapture = collectPaths(type + 'CAPTURE', fiber);
  triggerEventFlow(pathsCapture, type + "CAPTURE", se);

如此就能注册类似ONCLICKCAPTURE的事件回调了

[108][4.1.1] 子阶段的执行流程

会完成自下而上的subtreeFalgs标记过程,那么commit阶段的三个子阶段会完成'自下而上'的subtreeFalgs消费过程.
如果按照书中理解,第二个应该是‘自上而下’的样子?

[120页] Mutation阶段介绍

详细的勘误内容

4.4章节,Mutation阶段

在react18.2.0中,已经没有commitMutationEffects_begin/complete方法

直接在commitMutationEffects方法中执行commitMutationEffectsOnFiber方法

[3][1] 关于 NextJS

NextJS 是不是应该叫服务端渲染框架?叫服务端框架的话感觉让人误解。

[226][18行] 勘误错误

大致是在第18行,从“对于一次更新开始,当 beginWork 开始前,curent.lanes” 中的curent勘误错误

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.