--- order: 0 title: 顶部导航 --- 水平的顶部导航菜单。 ````jsx import { Menu, Icon } from 'antd'; const SubMenu = Menu.SubMenu; const MenuItemGroup = Menu.ItemGroup; const App = React.createClass({ getInitialState() { return { current: 'mail' }; }, handleClick(e) { console.log('click ', e); this.setState({ current: e.key }); }, render() { return (
); } }); ReactDOM.render(