You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2019. It is now read-only.
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>
);
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 {
return (
);
}
}