Testing your code is essential in todays world. You must ensure that you keep your state powerful, consistent, and understandable. Redux is framework agnostic so writing tests for it is super easy.
Actions define all the ways your state can change. Everything the user can perform an action on will be defined.
contstants/index.jsexport const INCREMENT = 'INCREMENT';
export const DECREMENT = 'DECREMENT';
export const ADD_COUNTER = 'ADD_COUNTER';
export const REMOVE_COUNTER = 'REMOVE_COUNTER';