Skip to content

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

Open
0verflowed-stack wants to merge 2 commits into
reactjs:mainfrom
0verflowed-stack:docs/fix_typo_and_remove_redundant_async
Open

docs: fix typo in useActionState and remove redundant async in useTransition#8642
0verflowed-stack wants to merge 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
  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! 🙌

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.

1 participant