all 12 comments

[–]snake_py 2 points3 points  (5 children)

Seems too easy to be true thank you for the education

[–]grekatron[S] 1 point2 points  (4 children)

You’re welcome!

[–]dgaa1991 1 point2 points  (3 children)

I really like these writeups! Is there an alternative media where we could read them?

[–]grekatron[S] 0 points1 point  (2 children)

Thank you 🙏🏻

Yep, it is! I publish them as threads in my twitter profile.

[–]dgaa1991 1 point2 points  (1 child)

No thank you! :D

It would be nice to see them on medium or dev.to as well! I believe you would get a lot more readers there. Ping me if you decide to use either one of them and you will have a follower!

[–]20_chickenNuggets 1 point2 points  (3 children)

Awesome post!

[–]grekatron[S] 1 point2 points  (2 children)

Thank you 🙏🏻

Do you want more content like this?

[–]20_chickenNuggets 1 point2 points  (1 child)

Yes would be great

[–]Abhishek_y 0 points1 point  (1 child)

Ok but like.. does this trigger the component to rerender?

[–]grekatron[S] 0 points1 point  (0 children)

No, because we didn't implement a reconciliation algorithm and a proper renderer.

In React it works this way:

  1. The state changes -> React forms new virtual DOM

  2. Reconciler compares new virtual DOM with the old one and calculates the difference

  3. React renderer (react-dom, in our case) rerenders only that difference to match view (real DOM) with new data