Skip to content

Commit c0ae5a2

Browse files
Remove redundant async in useTransition documentation
1 parent f3d9794 commit c0ae5a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/reference/react/useTransition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ export default function TabButton({ action, children, isActive }) {
661661
return <b className="pending">{children}</b>;
662662
}
663663
return (
664-
<button onClick={async () => {
664+
<button onClick={() => {
665665
startTransition(async () => {
666666
// await the action that's passed in.
667667
// This allows it to be either sync or async.

0 commit comments

Comments
 (0)