didact icon indicating copy to clipboard operation
didact copied to clipboard

A DIY guide to build your own React

Results 33 didact issues
Sort by recently updated
recently updated
newest added

```js function commitWork(fiber) { if (!fiber) { return } let domParentFiber = fiber.parent while (!domParentFiber.dom) { domParentFiber = domParentFiber.parent } const domParent = domParentFiber.dom if ( fiber.effectTag === "PLACEMENT" &&...

In Step III: Concurrent Mode, I learn that: requestIdleCallback(func) will call the call back function when the browser is idle. But in workLoop function, that while loop confused me. ```...

I don't understand why we excute 'updateDom' in the function 'createDom'.It seems that we would change the dom before 'commit',and that should not happen in 'performUnitOfWork' ![image](https://user-images.githubusercontent.com/33897606/159486155-5ddc7f3f-4fd1-4278-81f4-a18515842f2e.png)

in step 4 Fiber, prevSibling.sibling = newFiber;, fiber is the argument and prevSibling is the variable inside the function. How does the sibling come into fiber? Thank you.

Hi there, I was having problems implementing the Didactjs so at some point I decided to just copy the intire file and a got an error ## Error: `Uncaught TypeError:...

pragma and pragmaFrag cannot be set when runtime is automatic. ``` /** @jsx Didact.createElement */ const element = ( bar ) ``` "react-scripts": "3.0.0" was OK.

use isGone filter prevProps

Hi again :) Here is an attempt at implementing useEffect. It seems to work, but it might be closer to useLayoutEffect since I run the effect right after updating the...

Awesome course. Do you have the same course for vue?

Hi! Here is the implementation for the style object prop. Thanks again for your work on Didact :)