If u want to create a simple global state without using any third party packages like vuex or pinia, we can use the reac...