https://medium.com/@juniormarch48/understanding-the-differences-between-local-and-global-state-management-in-react-5665a16897ef