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

Why is this not working when we put the data in a different file? #24

Closed
rohitmarneni opened this issue Jun 28, 2019 · 2 comments
Closed

Comments

@rohitmarneni
Copy link

In my render method, I have this:

<SuperTreeView data={myData}/>

The myData variable has sample information taken from the sample demo. It works now.

However, if I were to take this myData json array and put it in a different js file and export it from there and then import it in my react component jsx file, it wont work. Only the top level is displayed. The checkboxes or arrows wont go further.

@azizali
Copy link
Owner

azizali commented Jun 28, 2019 via email

@rohitmarneni
Copy link
Author

My bad, it was a simple issue with updateCb callback. Thanks for your reply. Closing the issue. Have a nice day.

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