I heard inline functions like this is bad:
onPress={() => handleSubmit()}
you should use this instead:
onPress={handleSubmit}
But what I make if I have an argument like this:
onPress={(val) => handleSubmit(val)}
so then its not working without arrow
So is there another performant way ?