0.1.0 • Published 1 year ago
router-main v0.1.0
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>
0.1.0
1 year ago