Skip to content

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

@akojimsg

Description

@akojimsg

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),
      ^
   };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions