Assignment

Using your credit card form assignment as a reference, change over components to be functional components and manage state through hooks.

credit card example

Deliverable

  1. All class components should be replaced with functional components.
  2. All state management should be done through hooks, so remove all references to setState
  3. Should support same features as before: show amount being charged, submit button, and all fields that are required to submit credit card should be editable.

How to run the project

npm i && npm start

Open http://localhost:3000