Differences between Class and Function Components