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

Question: Can Figbird be used in a ReactJs class component? #39

Closed
palmtown opened this issue Dec 26, 2022 · 1 comment
Closed

Question: Can Figbird be used in a ReactJs class component? #39

palmtown opened this issue Dec 26, 2022 · 1 comment

Comments

@palmtown
Copy link

Hello Community,

Can figbird be used in a ReactJs class component? If so, are there any examples that can be shared? Thanks.

@KidkArolis
Copy link
Collaborator

I don't think it can - it can only be used via hooks. You could wrap your class component into a function DataWrapper() {} component, fetch your data in this wrapper using the useFind/useGet hook and pass it as props to the class component.

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

2 participants