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

Is it possible to import individual components into a react project #166

Open
akojimsg opened this issue Nov 24, 2021 · 0 comments
Open

Comments

@akojimsg
Copy link

I am trying to implement the large collection example using a functional component. Having difficulty with basic imports eg:

import TreeState from 'react-virtualized-tree/TreeState'

If I do import { TreeState } from 'react-virtualized-tree', I get the following error:

Cannot read property 'createFromTree' of undefined
  class LargeCollection extends Component {
     state = {
     nodes: TreeState.createFromTree(Nodes),
      ^
   };
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

1 participant