0.0.3 • Published 5 years ago

router-view-dom v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Router View Dom

Demo

Router View Dom is wrapper on simple react-router-dom providing a good development with routing for programmers.

Install

npm install router-view-dom --save

Include

import RouterView from 'router-view-dom';

Router View

import RouterView from 'router-view-dom';
PropertyDescriptionTypeDefault
routersshould be arrayarray[]

routers

PropertyDescriptionTypeDefault
pathshould be url pathstring''
keyoptionalstringindex key
component-component or function-
strict-booleanfalse
exact-booleanfalse
routeschildren routesarray[]
beforeshould be included function nextfunction-
nextshould be return path or nothingfunction-

Router Wrapper

import { RouterWrapper } from 'router-view-dom';
PropertyDescriptionTypeDefault
routerTypecan be hash or ''stirng''