The single-responsibility principle (SRP) is a computer programming principle that states that "A module should be responsible to one, and only one, actor."[1] The term actor refers to a group (consisting of one or more stakeholders or users) that requires a change in the module.| en.m.wikipedia.org
Let's talk about state. Communicating state to the user that is, not application stores state in JavaScript objects, or localStorage. We're going to be| CSS-Tricks