Socket
Book a DemoInstallSign in
Socket

antd-menu-router

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

antd-menu-router

Generate Antd menu and React Router components.

unpublished
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

antd-menu-router

Install

yarn add antd-menu-router

Usage

import generateRoute, { RouteConfig } from 'antd-menu-router'

const config: RouteConfig[] = [
    {
        key: 'mail',
        title: '邮件',
        path: '/mail',
        icon: <MailOutlined />,
        element: <Mail />,
    },
]

const { Navs, Routes } = generateRoute(config)


function App() {
    <div >
        <div className="nav">
            <Navs />
        </div>
        <div className="content">
            <Routes /> 
        </div>
    </div>
}

Keywords

antd

FAQs

Package last updated on 27 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts