A simple and responsive currency converter built with React and Tailwind CSS, created to practice using custom hooks.
- 🔁 Convert from one currency to another in real-time
- 🔄 Swap "From" and "To" currencies
- 🌐 Fetches exchange rates dynamically from a JSON API
- 🔍 Clean UI with
Tailwind CSS - 🧠 Uses a custom
useCurrencyhook to manage currency data fetching
This project was created to learn and practice custom React hooks — specifically:
- Separating logic for data fetching
- Making components more reusable and cleaner
- React
useEffect,useState, and controlled components
- React (Vite)
- Tailwind CSS
- Axios
- Custom Hooks
git clone https://github.com/viveksahux/Currency-Converter.git
cd react-currency-converternpm installCreate a .env file in the root:
VITE_API_URL=https://latest.currency-api.pages.dev/v1/currenciesnpm run devThis project is just for fun and learning
This project is based on a tutorial by Hitesh Choudhary.
