We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e872a commit ee264adCopy full SHA for ee264ad
react/advanced-hooks/06-form-actions/lecture/App.tsx
@@ -41,6 +41,8 @@ export function App() {
41
const [messages, setMessages] = useState<Message[]>([])
42
const [pending, setPending] = useState(false)
43
44
+ // const [pending, startTransition] = useTransition()
45
+
46
async function handleSubmit(e: FormEvent<HTMLFormElement>) {
47
e.preventDefault()
48
setPending(true)
0 commit comments