You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two questions about component and different forms in a website.
I have created the reused components (eg: input field).
If i want to use the reused component outside the component, it will show an error like "Uncaught TypeError: Cannot read properties of undefined (reading 'getFieldProps')"
What should I do? Do I need to created two same reused component (without using formik and with using formik)?
In my website, it has different form in different pages like login page, register page, search page and son on.
Do I need to create a in each page? Is it the suitable method to to that?
What is the better method to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have two questions about component and different forms in a website.
I have created the reused components (eg: input field).
If i want to use the reused component outside the component, it will show an error like "Uncaught TypeError: Cannot read properties of undefined (reading 'getFieldProps')"
What should I do? Do I need to created two same reused component (without using formik and with using formik)?
In my website, it has different form in different pages like login page, register page, search page and son on.
Do I need to create a in each page? Is it the suitable method to to that?
What is the better method to do this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions