material-ui
material-ui copied to clipboard
material-ui MenuItem vs react-router
material-ui MenuItem use react-router,How to do it?
Make sure you have a history singleton set up with React Router. (https://www.npmjs.com/package/history)
<Router history={history}>
You can then use the onTouchTap prop for MenuItem to handle path changes.
http://www.material-ui.com/#/components/menu#menuitem-properties
Inside the handling code you can use the history singleton to push changes to the routing.