routers.js
import News from '../components/News';
import ProductList from '../components/ProductList';
import User from '../components/User';
import UserList from '../components/UserList';
import UserAdd from '../components/UserAdd';
let routes = [
{
title: 'News',
path: '/news',
component: News
}, {
title: 'Products',
path: '/products',
component: ProductList
}, {
title: 'User',
path: '/user',
component: User,
children: [{
title: 'UserList',
path: '/user/List',
component: UserList
}, {
title: 'UserAdd',
path: '/user/add',
component: UserAdd
}]
}];
export default routes;
Container.js
import React from 'react';
import { Menu } from 'a