Lifecycle Hook 'beforeUpdate' Example

When the 'sliderVal' property gets a new value from the slider, a new render is triggered because the page must be updated.

The 'beforeUpdate' lifecycle hook is used to count how many times a new page render is triggered.

Move image: 50 px

Rendered 0 times.