MandarinConLaBarba / react-tree-menu

A stateless tree menu component for React.
http://mandarinconlabarba.github.io/react-tree-menu/example/index.html
MIT License
170 stars 51 forks source link

Compatible with React 0.14 #15

Closed gregorym closed 9 years ago

gregorym commented 9 years ago

I get the following error message:

Uncaught Error: Invariant Violation: TreeMenu.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object.
MandarinConLaBarba commented 9 years ago

@gregorym thanks for bringing this to my attention.

I've created a branch react-0.14....let me know how that works for you. I can't produce your specific error. This branch bundles fine w/ react + react-dom and the examples all work. The console is also free of any deprecation warnings.

https://github.com/MandarinConLaBarba/react-tree-menu/tree/react-0.14

gregorym commented 9 years ago

Cool! I'll give it a try and let you know.

gregorym commented 9 years ago

[Edit: NVM, my error comes from somewhere else]

I am able to reproduce using the data props.

data = { label: 'test'};

<div className={classes.join(' ')}>
        <TreeMenu data={data} />
      </div>
MandarinConLaBarba commented 9 years ago

Ok thanks