also shouldn't classes that are called components in this example extend from Component for better understanding? I know it does not make a difference from functional point of view.