October 2019
Intermediate to advanced
426 pages
11h 49m
English
The first step when implementing routing is to install the navi and react-navi libraries. Then, we define the routes. Follow the given steps to do so:
> npm install --save navi react-navi
import { Router, View } from 'react-navi'import { mount, route } from 'navi'
import HomePage from './pages/HomePage'
const routes = mount({
'/': route({ view: <HomePage /> }),
Read now
Unlock full access