Shows the difference between handling global state and local state
JavaScript
REDUX TOOLKIT PROOF OF CONCEPT
The main thing of note is to note how the count state is managed in both screens.
The ReduxCounter screen keeps its count when moving between screens while the StateCounter screen does not.