I've included the image below so you can understand what I'm talking about.
For a React component I am able to create a class and have functions that display the content that is returned from those functions. I see three sections of a component that I can place a functions(see red boxes in image). I'm confused as to if it matters where an actual function is placed. All three of these functions do the same thing and yet are in different places.
Can someone please tell me if it matters or if it just preference of the developer.
Thank you.
C
Image below.