Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing happens when adding a task #28

Open
lovodkin93 opened this issue Feb 24, 2022 · 4 comments
Open

nothing happens when adding a task #28

lovodkin93 opened this issue Feb 24, 2022 · 4 comments

Comments

@lovodkin93
Copy link

Hey,
I am trying to follow your crash course, using your git code which I cloned.
I am running it on localhost:3000 (changed all the localhost:5000 in the App.js file to localhost:3000), as the localhost:5000 version constantly crashed.
The problem is, when I add a task and press the save button, nothing really happens - I just to back to the empty submitting page all over again.
What am I missing here?
Thanks!

@mikrokosmos2109
Copy link

same issue here

@luis123doria
Copy link

Same issue, I've tried so many times to fix it, but nothing works :c

@graftdigital
Copy link

I had the same then realised I had an issue with the e.preventDefault() - I had e.prevent.Default() which is wrong - changed to e.preventDefault() and it was all good.

@Valentino-unova
Copy link

You need to pass an event into the function: onSubmit={(e) => { onSubmit(e); }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants