a single direction and you have better control over it. Also the application state is contained in specific components and as a result different components of your app remain loosely coupled.
Simple example to understand imperative is Google navigation system, when we enter address, guide comes and let us know which steps we have to make to reach from place a to b. And declarative is that we have to reach from a to b, and it doesn’t matter how many steps we take to reach from a to b, but at the same time we know, how to move step by step.