Skip to content

Commit

Permalink
fix: 馃悰 Fixed incorrect destructuring when using React 18
Browse files Browse the repository at this point in the history
  • Loading branch information
MMMikeM committed May 17, 2022
1 parent 2bbc279 commit f3bde85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/suspense/src/components/Button.js
Expand Up @@ -3,7 +3,7 @@ import React from "react";
import Spinner from "./Spinner";

export default function Button({ children, timeoutMs = 3000, onClick }) {
const [startTransition, isPending] = React.useTransition({
const [isPending, startTransition] = React.useTransition({
timeoutMs: timeoutMs
});

Expand Down

0 comments on commit f3bde85

Please sign in to comment.