Question on Functions vs Components - SolidJS