From 941cf0ce11398fefb61b2855ef86b656135b8afa Mon Sep 17 00:00:00 2001 From: Mehdi Date: Sun, 22 Sep 2024 00:28:06 +0330 Subject: [PATCH] fix: missing parentheses --- src/content/blog/2024/04/25/react-19.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/2024/04/25/react-19.md b/src/content/blog/2024/04/25/react-19.md index 1b19c354646..322fbdf6d1c 100644 --- a/src/content/blog/2024/04/25/react-19.md +++ b/src/content/blog/2024/04/25/react-19.md @@ -213,7 +213,7 @@ Another common UI pattern when performing a data mutation is to show the final s function ChangeName({currentName, onUpdateName}) { const [optimisticName, setOptimisticName] = useOptimistic(currentName); - const submitAction = async formData => { + const submitAction = async (formData) => { const newName = formData.get("name"); setOptimisticName(newName); const updatedName = await updateName(newName);