Challenge: Color Palette Generator

Hands-on exercise to test your knowledge about the custom hooks in React.

Task

Create a React application for managing a color palette. Users can add, remove, and select colors. It displays the color palette, allowing users to remove colors and let them add new colors. The application structure is organized using a custom hook, useColorPalette.

Expected output

The application features a color palette. Users can perform actions such as adding, removing, and selecting colors. The application showcases the color palette, enabling users to remove existing colors and add new ones. The custom hook, useColorPalette, is employed to structure the application.

Get hands-on with 1200+ tech skills courses.