react-metismenu-router-link
Router link extension for react-metismenu
menu component to work with react-router.
For full documantion please visit react-metismenu.
Install
$ npm install --save react-metismenu-router-link
Demo
Here is a simple demo using router link component in react-metismenu
. Go to demo
Usage Example
I think, example is enough to tell.
;;;; const content = icon: 'icon-class-name' label: 'Label of Item' to: 'a-route-path' icon: 'icon-class-name' label: 'Second Item' content: icon: 'icon-class-name' label: 'Sub Menu of Second Item' to: 'another-route-path' ; const App = <div> <MetisMenu content=content LinkComponent=RouterLink /> </div>; ReactDOM;