Anchor 1
Anchor 2
Anchor 3
Anchor 4
Anchor 5

Change hash through NextJs Link to anchor

It causes a re-render of the entire app, including the page and all components involved, see dev console.

Change hash through HTML Link to anchor

It does not cause any re-render.

Change hash through NextJs Router push function

Identical to NextJs Link. It causes a re-render of the entire app, including the page and all components involved, see dev console.