Replies: 1 comment
-
Yes, it should be a default export function NewRecipe() {
const { errors } = useActionData<typeof action> ?? {} // guard against destructuring undefined
// ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to learn Remix, and I believe I've identified a potential mistake in the code snippet provided at the following link: https://remix.run/docs/en/main/discussion/form-vs-fetcher#creating-a-new-record
It seems that there might be a missing default to the export on line 21. Can someone confirm if this is correct, or if I'm overlooking something?
Beta Was this translation helpful? Give feedback.
All reactions