What is the purpose of the constants in Redux?

Constants allows us to easily find all usages of that specific functionality across the project when we use an IDE. It also prevents us from introducing silly bugs caused by typos – in which case, we will get a ReferenceError immediately. Normally we will save them in a single file ( constants.js or actionTypes.js ).