Concept Flow - beforeUpdate and afterUpdate
Component State Changes
beforeUpdate runs
DOM updates with new state
afterUpdate runs
Component ready with updated DOM
When component data changes, beforeUpdate runs first, then the DOM updates, and finally afterUpdate runs after the DOM is updated.