Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@minko-fe/react-route

hemengke1997140MIT1.0.2TypeScript support: included

react-route

react-route

readme

react-route

Usage

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

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

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

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

changelog

@minko-fe/react-route

1.0.2

Patch Changes

1.0.1

Patch Changes

1.0.0

Major Changes

  • deprecate provider option, please use render instead

0.1.32

Patch Changes

0.1.31

Patch Changes

0.1.30

Patch Changes

0.1.29

Patch Changes

0.1.28

Patch Changes

0.1.27

Patch Changes

0.1.26

Patch Changes

0.1.25

Patch Changes

0.1.24

Patch Changes

0.1.23

Patch Changes

0.1.22

Patch Changes

0.1.21

Patch Changes

0.1.20

Patch Changes

0.1.19

Patch Changes

0.1.18

Patch Changes

0.1.17

Patch Changes