This package has been deprecated

Author message:

Please replace this with @minko-fe/react-route

@minko-fe/react-util-route
TypeScript icon, indicating that this package has built-in type declarations

0.0.37 • Public • Published

Usage

import { BrowserRouter } from 'react-router-dom'
import { CreateRoutes } from '@minko-fe/react-util-route'
import type { RoutesItemType } from '@minko-fe/react-util-route'


const routes: RoutesItemType[] = [
  {
    path: '/path',
    component: () => import('path/to/page'),
  }
]

// App.tsx
const App = () => {

  return <BrowserRouter><CreateRoutes routes={routes} /></BrowserRouter>
}

Readme

Keywords

Package Sidebar

Install

npm i @minko-fe/react-util-route

Weekly Downloads

0

Version

0.0.37

License

MIT

Unpacked Size

21.5 kB

Total Files

7

Last publish

Collaborators

  • hemengke-