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

If TreeMenu has a single child, uncaught exception occurs #2

Closed MandarinConLaBarba closed 9 years ago

MandarinConLaBarba commented 9 years ago

Get this:

Uncaught TypeError: undefined is not a function

Thrown here:

https://github.com/MandarinConLaBarba/react-tree-menu/blob/master/src/TreeMenu.jsx#L62