This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
Created an colors array of objects, where each object contains a color name and its corresponding hex code.
Created a reusable component (Color) that accepts name and hex as properties.
Iterated over the array of color objects, and for each object, you use the Color component to display the color on the webpage.