Skip to content

docs: fix typo in useActionState and remove redundant async in useTransition - #8642

Merged
aurorascharff merged 2 commits into
reactjs:mainfrom
0verflowed-stack:docs/fix_typo_and_remove_redundant_async
Nov 7, 2026
Merged

aurorascharff merged 2 commits into
reactjs:mainfrom
0verflowed-stack:docs/fix_typo_and_remove_redundant_async

Conversation

@0verflowed-stack

@0verflowed-stack 0verflowed-stack commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor
  1. Fixes a typo in the useActionState documentation.

Moves the comma outside the quotation marks:

Every time you click "Add Ticket," React queues

becomes

Every time you click "Add Ticket", React queues

I know that Chicago style places commas before the closing quotation mark, but based on the style used in other parts of the React documentation for quoted UI labels, I believe this is a typo.

Before fix:
1

After fix:
2

  1. Removes a redundant async from a useTransition example.

Changes

onClick={async () => {

to

onClick={() => {

The outer event handler does not contain an await, so marking it as async is unnecessary.

Before fix:
3

After fix:
4

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@aurorascharff aurorascharff left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!! ❤️

@aurorascharff
aurorascharff merged commit 652b25c into reactjs:main Nov 7, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 36d63285 Deployed Sep 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants