router-main
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Router Main

package of react-router-dom

Example

const routes: PathApp[] = [
    {
        label: 'Home',
        path: '/',
        // funcion que regresa un elemento
        Element: Home
    },
    {
        label: 'Contact',
        path: '/contacto',
        // funcion que regresa un elemento
        Element: Contact
    }
]


<RouterApp paths={routes}>


    // devuelve el componente segun el path
    <RoutesApp />

</RouterApp>

Readme

Keywords

none

Package Sidebar

Install

npm i router-main

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

15 kB

Total Files

29

Last publish

Collaborators

  • kensaaa