router-view-dom
v0.0.3
Published
react router view
Maintainers
Readme
Router View Dom
Router View Dom is wrapper on simple react-router-dom providing a good development with routing for programmers.
Install
npm install router-view-dom --saveInclude
import RouterView from 'router-view-dom';Router View
import RouterView from 'router-view-dom';Property | Description |Type | Default |
------------- | ------------- |------------- | ------------- |
routers |should be array | array | []|
routers
Property | Description |Type | Default |
------------- | ------------- |------------- | ------------- |
path |should be url path | string | ''|
key |optional | string | index key|
component | - | component or function |- |
strict | - | boolean |false |
exact | - | boolean |false |
routes | children routes | array |[] |
before | should be included function next | function |- |
next | should be return path or nothing | function |- |
Router Wrapper
import { RouterWrapper } from 'router-view-dom';Property | Description |Type | Default |
------------- | ------------- |------------- | ------------- |
routerType | can be hash or '' | stirng | ''|
