Sync with react.dev @ 427f24d6 by react-translations-bot · Pull Request #533 · reactjs/vi.react.dev
and others added 30 commits
August 22, 2025 18:13The previous sentence "If you are using React Compiler, useMemo, useCallback, and React.memo can be removed." was coming off a bit too strong and makes it incorrectly seem like the manual memos and compiler memos are 1:1. Removing the sentence doesn't take anything away from this paragraph, so let's remove it to reduce confusion.
The compiler rule is now enabled by default in 6.0.0-rc.2, so there is no longer a need to manually enable the compiler rule in user's eslint configs.
…d example of the use API (#7767) * Update "Deep Dive" in reusing-logic-with-custom-hooks.md with link to and example of the use API * Remove mention of Server Components when explaining the use API * Update src/content/learn/reusing-logic-with-custom-hooks.md Co-authored-by: Ricky <rickhanlonii@gmail.com> * fix: Correct which lines are highlighted in code example --------- Co-authored-by: Ricky <rickhanlonii@gmail.com>
The previous examples used a service called loremflickr.com to link to placeholder images. Since that service is now down, I updated them to reference placecats.com instead, which we already use in other examples as well. placecats doesn't have the same random cat feature so I roughly approximated it in the example code. Closes #7966
* Fix handleClick compiler intro example * Use a note instead * Update src/content/learn/react-compiler/introduction.md
* fix: changed source file names in docs from App.js, index.js and styles.css to src/ dir * fix: updated wrong image with the correct one with current sandbox file structure * refactor: reverted all formatting and just just mention src folder in introductory section * Reverted changes tutorial-tic-tac-toe.md * added enhanced image of sandbox
* Revamp useOptimistic docs * Updates from review * Edit down a bit * Updates from feedback * Updates from feedback * Updates from feedback * fml, forgot startTransition again * rm "prop" * feedback from @stephan-noel * feedback from @stephan-noel * update note
This commit fixes the wording of __Rendering__ explanation paragraph in the "components and hooks must be pure" page, according to the suggestion so that it's easier to understand without any confusion around effects relation.
* Claude update for useActionState * Human edits * Feedback * Add link to form action docs * oops * claude feedback * Add error handling example. * Better useOptimistic and pending states. * Move up "cancelling queued actions" and update form example pending state * Ooops * Troubleshooting updates * Feedback
* Expand ViewTransition callback props reference documentation
Document the full callback signatures with ViewTransitionInstance
and types arguments, cleanup function return values, instance
properties (group, imagePair, old, new), and per-callback behavior.
* Add usage section for imperative animations with ViewTransition callbacks
Add "Animating imperatively with callbacks" usage section with Sandpack
example showing onEnter/onExit with instance.new.animate() and cleanup
functions. Includes addTransitionType integration example.
* Fiz lint
* Fix heading IDs to use no-space format for dead link checker
The dead link checker regex expects {/*id*/} format without spaces.
Prettier reformatted these to {/* id */} which broke anchor links.
* bump CI
* rm ;
* Human Updates
* Claude Feedback
* Add RSC Sandboxes * Recover from errors, parse directives in worker with AST * Fix client edits * fast refresh * hardening * make rsc-sandbox-test dev-only * add more examples to rsc-sandbox-test * remove rsc-sandbox-text from sidebar * Add inline server actions * fix lint * pin deps, update skill * remove [RSC Client Error] from logs * log error directly in worker * update worker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters