alpertuna / react-metismenu

A ready / simple to use, highly customizable, updateable, ajax supported, animated and material designed menu component for React

Home Page:https://www.npmjs.com/package/react-metismenu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not redering to another page

chetanwaghfx opened this issue · comments

I have used this code
I am trying to click menu like Dashboard but in URL path change but the component is not load
How to resolved this problem
Please Reply asap.

My Code:
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router, Link, Route, hashHistory } from 'react-router-dom';
import MetisMenu from 'react-metismenu';
import RouterLink from 'react-metismenu-router-link';

export class SideMenu extends React.Component {

render() {
    const menu = [
        {
            label: 'Dashboard',
            to: 'dashboard',
        },
        {   
            label: 'News',
            to: 'news',
        },
        {   
            label: 'Settings',
            to: 'setting',
        }
    ];

    const App = (props) => (
      <div>
        <MetisMenu
          content={menu}
          LinkComponent={RouterLink}
        />
      </div>
    );

return (



);
}
}