facebookarchive / react-meteor

React rendering for Meteor apps
948 stars 113 forks source link

Top Level component / hierarchy #90

Open sergical opened 9 years ago

sergical commented 9 years ago

Hey guys, I am trying to implement http://gaearon.github.io/react-dnd/ with some Meteor React components but I am getting an error saying that Error: Error: Invariant Violation: Could not find the drag and drop manager in the context of DropTarget(Component). Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://gaearon.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context

I have an ItemList which has ItemRow inside of it and I'm calling ItemList = ReactDnD.DragDropContext(ReactDnD.HTML5)(DropList); but that is not the top level component (looking at the React console debugger).

Is there a way to get to the Top Level Component?