If state is only needed locally, local state is simpler and keeps ownership close to where the state is used.
Question 14 of 20 in State Management Libraries Quiz