News for hackers. Stuff that matters.
Re:React Fiber Architecture by underwater on Sunday August 07, 2016 @10:57PM (#12245210)
Of course you can do manual dirty tracking. But why would you ever want to do that on every single component when you could get it for free?

React's DOM digging has zero cognitive overhead so the benefits are essentially free to me as a developer.

Re:React Fiber Architecture by spankalee on Monday August 08, 2016 @12:26AM (#12245490)
This is a sketch of a raw custom element with no library for sugar. A library that assisted in the pattern would presumably implement the accessors for you.

ES/TypeScript decorators would be an easy way to do this, or just a function that fixes up the class after declaration.

Re:React Fiber Architecture by underwater on Monday August 08, 2016 @03:08AM (#12245935)
So implement the accessors logic and invalidation logic, centralize the rerender scheduling and you've rebuilt React.