react-router-ext.
An Extended react-router-dom with simple usage
API
Table of Contents
Usage
An Example usage react-router-ext.
Parameters
props
Object
Properties
Examples
const routeList = // Basic path: '/' component: Home exact: true // With Wrapper Component path: '/' component: Home exact: true wrapper: AuthComponent // With Routes path: '/' component: Home exact: true wrapper: AuthComponent routes: path: '/article' component: Article exact: true routes: path: '/categories' component: Category exact: true // RenderReactDOM
Returns ReactElement
Route
Type: Object
Properties
path
String Path-stingexact
Boolean Exact-boolcomponent
Object Componentwrapper
Function A Wrapper function for componentroutes
Array<Route> Route
Credits
- See: reactjs for use this Project.
- See: react-router-dom The main idea & goals.
- See: Microbundle 🔨 for bundle this Project.