thx~. How to do the keynote with this affect? @5:30
@knopeace7 жыл бұрын
@7:42 Paul says "Excuse my return true; return false"- wondering why?
@ABeck21897 жыл бұрын
Because he could have turned the code into `return !!node.dataset[ROOT_KEY];
@shivamjhaa Жыл бұрын
"So, we are not actually going to look at the implementation of ChildReconciler, because... I love you guys, it's not fair." I can't stop laughing (It's actually true, tho)
@knopeace7 жыл бұрын
@7:42 Paul says "Excuse my return true...return false"- wondering why?
@glentiki7 жыл бұрын
He could just return the boolean in the if statement, or if he's doing a thruthy check, turn return the thruthy check coerced into a boolean.
@MitritchUa7 жыл бұрын
Maybe because it is considered as good style to have single point of return from function? Dunno actually.
@vasanthkay7 жыл бұрын
@knopeace That's because instead of using multiple returns -- isRoot function can be simplified to just return node.dataset[ROOT_KEY];
@luferov Жыл бұрын
Is there GitHub repo?
@hoangtrieukhang7 жыл бұрын
does anyone have the link to the blog post about shoudUpdateComponent that he mentioned?