I am new to React Native and would like to objectively understand:
What is the difference between using
global.variavel = foo; or create a context API?
& # 39; React recently implemented Context Api in its library replacing Redux & # 39;
In a situation like: Pass data taken from a page (component) And store to be used in another area on another page (component).
Which one should I use?
Are they the same things?
I didn't find much related article explaining "Simple and objective" and I have this doubt that for me right now it is very important for a project!