Closed hunterwilkins2 closed 3 years ago
Any ideas why i'd be getting this error when i put a button inside a formik (@GaryBarnes13 )
Can you attach your code, or let me know what file it is in? I have not received this error before, but it sounds like you might just be missing some syntax formik is expecting. For some simple examples of Formik, see the login page and here. From what I can tell by googling this, it really doesn't look like a formik issue, but rather, a general React issue.
@GaryBarnes13 I pushed the code in the managePromotions branch. It's in the ManagePromotions.js
file.
Looks like you're missing quite a bit of syntax that Formik is expecting, specifically under the
Looks like you're missing quite a bit of syntax that Formik is expecting, specifically under the
tag. Look at some of the other examples of the forms I built to see this, the best one to check would probably be the registration form. Also, you shouldn't have to disable no-unused-vars for those lines, since all of those values are needed to build a form. See here for an overview on forms with Formik if my examples aren't sufficient
Thanks Gary, I was able to get it resolved
@galaxyproduction could you look at the server.js
code on the managePromotions branch? I am gettign the following error after adding the two lines about the promotions route.
Its routes with an 's'.... lol
Requirments