In this article, we will show you how to create global state using createGlobalState, a function we built. If you are interested in how this function is implemented in more detail go to this article. Intro In some cases, two components that are not located close to each other in your…