React Router [![npm package][npm-badge]][npm]
This is a fork of React Router:2.8.1 with SWEG React.
npm install --save react-router-with-sweg@2.8.1 ## What is SWEG? In short, SWEG adds an extra argument to your route tranistion hooks, e.g. ##### `onEnter(nextState, theSweg, replace, callback?)` Instead of: `onEnter` ##### `onChange(prevState, nextState, theSweg, replace, callback?)` Instead of: `onChange` ##### `onLeave(prevState, theSweg)` Instead of: `onLeave` wher theSweg can be created by providing eiter: 1. `const ` prop to `<Router>` component2. by adding an extra argument to match call, e.g: `match` # Looking for the real repo? https://github.com/reactjs/react-router-tutorial [npm-badge]: https://img.shields.io/npm/v/react-router-with-sweg.svg?style=flat-square[npm]: https://www.npmjs.org/package/react-router-with-sweg