Web / React native Interview questions
Is there any difference between declaring a function inside or outside the component's body?
Declaring a function outside of the class is like making a static function. If you place the function in the class, it will be created for each instance of the class which in this case would be unnecessary.
More Related questions...