August 2017
Beginner
374 pages
10h 41m
English
We have already defined some action types in the previous chapters:
In addition to these, we also define the following new action types:
We put all of our action types into the src/actionTypes.js file. You can use spacing and comments to separate the modules. If the project grows even more, you might want to consider splitting your action types into multiple files in a directory. We are going to do this for our action creators later. For now, define the following action types in the src/actionTypes.js file:
// users export const CREATE_USER = 'CREATE_USER' // posts export const CREATE_POST = 'CREATE_POST' export const EDIT_POST = 'EDIT_POST' export ...
Read now
Unlock full access