Re:The self-fulfilling prophecy of React
by danieltanfh95 on Friday September 09, 2022 @01:19AM
(#32775589)
Yikes. That does not look sane to me. Duplicate vnodes doesnt work, so you HAVE to use some function to generate it instead?
[ Parent
| on HN ]
Re:The self-fulfilling prophecy of React
by localvoid on Friday September 09, 2022 @01:31AM
(#32775645)
> Duplicate vnodes doesnt work, so you HAVE to use some function to generate it instead?
Yes. Mutable vnodes is a huge mistake that I've done long time ago when I've tried to figure out how to write efficient diffing algorithm (2014-2015), and a lot of libraries copied that terrible idea without deep understanding why I've done it in the first place.