react-multi-date-picker
react-multi-date-picker copied to clipboard
date picker not working while using react-hook-form
I'm working on a next.js (with typescript) project and I'm trying to build a form using react-hook-form. inside the form, I have implemented the DatePicker component
I tried the tutorial and the example code provided inside the documentation
but the code throws error and doesn't work at all!
it looks like the example provided in the documentation is deprecated or something is wrong with it! if I try to run the code it throws an error saying:
ReferenceError: language is not defined
if I delete the language, the error will go but the app doesn't work as expected.
I'm working with ReactJS using context, but not work.
I have same issue
Please follow this example:
https://codesandbox.io/s/ecstatic-scott-iuzuqr?file=/src/App.js