Skip to content
This repository was archived by the owner on Oct 29, 2019. It is now read-only.
This repository was archived by the owner on Oct 29, 2019. It is now read-only.

Not redering to another page #44

Description

@chetanwaghfx

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 (



);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions