This is a small example to build a simple routing solution for React.js instead of using the popular React Router.
It utilizes great libraries e.g. history and universal-router which are React-independent.
The example includes:
- A singleton
historyobject for URL navigation - A
Routercomponent to route different child components - A
Linkcomponent that acts as those in React Router or in React Static Boilerplate - An example component
Appto demostrate their usages