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 6961e84 commit 586da1aCopy full SHA for 586da1a
react/useOptimistic/src/App.tsx
@@ -14,7 +14,6 @@ function App() {
14
15
async function sendBook(formData: FormData) {
16
const book = formData.get("book");
17
-
18
const sentBook = await createNewBook(book as string);
19
setBooks((books: Book[]) => [...books, { title: sentBook, sending: false }]);
20
}
0 commit comments