Before React: to make a transition, let's change this, this and then that, mutating state on every step.
After React: have one pure function, which takes as input the current state and produces the desired output.
This is the main shift. It's very similar to how imperative programming is done in Java vs Haskell.
This is the main shift. It's very similar to how imperative programming is done in Java vs Haskell.