I am a little confused about the way function is called in these cases
onPress(() => myFunction())
And
onPress(myFunction)
Is it the same thing but the 2nd one is a shortened version of the first one?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I am a little confused about the way function is called in these cases
onPress(() => myFunction())
And
onPress(myFunction)
Is it the same thing but the 2nd one is a shortened version of the first one?