Rocon Tutorial
Rocon is a router library with ultimate type safety for your routing and navigation. Currently we provide a React binding of Rocon. It integrates with HTML's history API backed by the history module.
Rocon is intended to be an alternative of react-router-dom. The major difference is how routes are defined, for which Rocon provides an ultimately type-safe way.
Installation
npm install rocon history
In order to use the React binding of Rocon, it requires react@^16.8.0
and history@^5.0.0
as peer dependencies.
Rocon needs TypeScript 4.0 or later for it to typecheck. Also,@types/react
should be installed.