📜  语义 ui 完整的响应式菜单 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:26.957000             🧑  作者: Mango

代码示例1
import React, { useState } from 'react';
import { Menu, Responsive, Dropdown, DropdownMenu } from 'semantic-ui-react';
import { withRouter } from 'react-router-dom';
import LogoutModal from './LogoutModal';

function NavMenu(props) {
    const [activeItem, setActiveItem] = useState('Laptop Item')
    const [showModal, setShowModal] = useState(false)


    return (
        
setActiveItem('Test Item')} /> setActiveItem('Test Item 2')} /> setActiveItem('Test Item 3')} /> setShowModal(true)} />
) } export default withRouter(NavMenu);