August 2017
Beginner
374 pages
10h 41m
English
We start by defining a NAVIGATE action and navigate(pageName) action creator. Dispatching this action will change the current page/route of our application. To define action types and action creators, perform the following steps:
// ...other action types...// routerexport const NAVIGATE = 'NAVIGATE'
import { NAVIGATE } from '../actionTypes'
export const navigate = (pageName) => { return { type: NAVIGATE, page: pageName }}
export * from './users' ...
Read now
Unlock full access