Where do you put your actions using redux-actions?

35 views
0

I’m a Redux user, and use classic Redux app structure – folder actions (“action-creators”), where I do some API calls and dispatch some events; also I use “reducers” folder, where I store my reducers as well. So, now I found “redux-actions” library and now I know, that I can delete constants and create actions right in folder with reducers. But I don’t know how I should do it properly – for example, I’ve got “todos.js” reducer file. Should I create actions and reducer in this file and just export all actions and reducer and use actions in some view and reducer for combineReducers with other ones? How do you organize your actions/reducers with redux-actions library?