React as a component