React Functional Component Loop Through Array