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
history
object for URL navigation - A
Router
component to route different child components - A
Link
component that acts as those in React Router or in React Static Boilerplate - An example component
App
to demostrate their usages