CurrCon is a simple currency converter React application that allows users to convert between different currencies. It utilizes React's useState hook for managing state and custom hooks for fetching currency information.
- Convert currency from one unit to another.
- Swap between "from" and "to" currencies.
- Display real-time conversion.
To run CurrCon locally, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/CurrCon.git
- Navigate into the project directory:
cd CurrCon
- Install dependencies:
npm install / npm i
- Start the development server:
npm run dev
The application should now be running on http://localhost:5173.
- Select the currency you want to convert from in the "From" input field.
- Enter the amount you wish to convert.
- Select the currency you want to convert to in the "To" input field.
- Click the "Convert" button to see the converted amount.
- You can also click the "Swap" button to switch between the "from" and "to" currencies.
- React: A JavaScript library for building user interfaces.
- useState: A React hook for managing state in functional components.
- InputBox Component: A custom input component for handling currency input.
- useCurrencyInfo Hook: A custom hook for fetching currency information.
Contributions to CurrCon are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
© 2024 Abhijeet Goswami