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

Struggling to get it to work using React #90

Closed
cryptobench opened this issue Jan 21, 2022 · 2 comments
Closed

Struggling to get it to work using React #90

cryptobench opened this issue Jan 21, 2022 · 2 comments

Comments

@cryptobench
Copy link

Hello!

First of I want to say that your project looks great!

I'm trying to get it work with react but i'm having trouble locally, so I created a CodeSandbox.

Here's what i've been doing, but nothing appears to be happening. I'm 100% doing something wrong, but I would greatly appreciate some help.

https://codesandbox.io/s/ecstatic-bash-26neo?file=/src/App.js

@cryptobench
Copy link
Author

Importing the library via causes it to work, but it won't without.

@mattaningram
Copy link
Member

Hey @cryptobench thanks for checking out AnimXYZ! I think this is a simple fix, you just need to import the core AnimXYZ CSS file.

Add the line import "@animxyz/core"; at the top of the App.js file and it works in your sandbox: https://codesandbox.io/s/amazing-dew-g70rx?file=/src/App.js

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