Inside the function that we put into additionalPatches we should render not the newVChildren but the additionalVChild.
This code appears in the first example in the explanation of diffChildren function.
Hey! I'm YCMJason, a Software Engineer in London 👨💻. Love diving into tech puzzles and sharing them! 🧩
All views expressed here are my own opinions, so please take them with a pinch of salt! 🧂
Very good job. Thank you for a thorough guide!
Actually, there is a typo in your code within the post.
Inside the function that we put into
additionalPatcheswe shouldrendernot thenewVChildrenbut theadditionalVChild.This code appears in the first example in the explanation of
diffChildrenfunction.You are a hero! Thanks for pointing that out! 🎉🎉🎉 I'll change it as soon as possible!
This typo is still in the article 😉