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

Can you please add good documentation how use it with React/Angular/Vue, because I spent already two days and still can not use it. #220

Closed
maxizhukov opened this issue Apr 28, 2021 · 4 comments

Comments

@maxizhukov
Copy link

Requires are not working, and all that described in Line "Browser", is not clear, there are some fixed files but how to use them?

@commenthol
Copy link
Owner

v3 of this library uses es6 modules. v2 uses cjs.
Please take a note here that you use v3 for imports.
Please also consider that this wont work with jest #209.
This is a library which you could use the "classic" way with UMD or any bundler will work.
Take a look at examples/browser/*. To see it live and in colors check https://commenthol.github.io/date-holidays/.
As being independent from and frontend framework there is point to me why this should not work with react/vue/...

@marinabrcls
Copy link

marinabrcls commented Jun 4, 2021

I couldn't get it to work on React either! What should I import? If you could, please, make a simple code demo, it would really be helpful...

@commenthol
Copy link
Owner

Have fun with https://github.com/commenthol/date-holidays-react-example

@marinabrcls
Copy link

Thank you!!! This really helped! 👍🏼

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

3 participants