react-mrouter
React Router for Mobile SPA
Live demo
https://broltes.github.io/router
Usage
npm install --save react-mrouter
; var Views = base: view1: view2: ; var App = React;;
href
to target view props
pass actions through <a href="#/view1/action1/action2">pass actions to view1</a>
router.goto()
to target view props
pass params through import router from 'react-mrouter';
function gotoView2WithParams(){
router.goto('/view2', 'some params');
}
<a onClick="gotoView2WithParams">pass params to view2</a>