React – Calling a function of all class instances in an array state stored in a ContextProvider
I have a provider that stores and adds ‘People’ to a state. This state is then exposed to the rest of the application. Everything works as expected, however when I get the instances of the classes I am unable to call their function. It returns undefined whenever I try to call it. The code itself… Read More React – Calling a function of all class instances in an array state stored in a ContextProvider