
上QQ阅读APP看书,第一时间看更新
Defining/importing action types
First, we will define the action types; we have already covered how to do this in a previous section.
Edit src/actionTypes.js and define and export the following action types:
export const EDIT_POST = 'EDIT_POST'
export const SET_FILTER = 'SET_FILTER'