Re:The single most important factor that differentiates ...
by Capricorn2481 on Sunday July 23, 2023 @05:46PM
(#36840182)
If by "Updated" you mean they are looked at in the virtual DOM to determine if they have to update, then yes. But children aren't repainted onto the DOM just because their parent is. This still is Reactive
[ Parent
| on HN ]
Re:The single most important factor that differentiates ...
by dezmou on Friday July 28, 2023 @07:22PM
(#36914742)
By Updated I mean that more than comparing virtual DOM to real DOM.
- If you have a useEffect without dependendy, it trigger it.
- If you have some map, filter, sort, any lambda in your template, it will be executed again.
And that is true for your component and every children recursively.