This way, instead of writing the raw strings in multiple places, you just import the string from the declared constant. In most Redux applications, they will show up in two places. Also, the action payload will be the user_id of the user to be set as active. The type or name of the action will […]