next.js
9d9c2049 - docs: add native DOM examples to Activity guide (#101581)

Commit
22 days ago
docs: add native DOM examples to Activity guide (#101581) ## Summary Adds the native popover example from #100208 to the existing Activity guide, with cleanup and unique IDs for elements in preserved pages. Also corrects the form-reset example to keep its callback ref stable across rerenders and distinguishes uncontrolled DOM values from controlled React state. Clarifies that an Effect running again does not necessarily mean a page was shown again, because Strict Mode also repeats setup and cleanup in development. ## Verification - Checked the examples against React's Activity cleanup implementation and the React and MDN API references. - Prettier and `git diff --check` pass. - Browser tests were not run for this docs-only change. <!-- NEXT_JS_LLM -->
Author
Parents
Loading