The mass action law in extended irreversible thermodynamics