A React-based web application that converts between different units of measurement, built with TypeScript. This is a solution for Unit Converter at Roadmap.sh
This Unit Converter is a web-based tool that allows users to convert values between various units of measurement. It supports conversions for length, temperature, weight, and other units in the future.
conversions/ ├── lengthConversions.ts ├── temperatureConversions.ts ├── unitConvert.ts └──weightConversion.ts App.tsx main.tsx
lengthConversions.ts
: Handles conversions between length unitstemperatureConversions.ts
: Manages temperature unit conversionsunitConvert.ts
: Likely contains shared conversion logicweightConversion.ts
: Deals with weight unit conversionsApp.tsx
: Main React component for the applicationmain.tsx
: Entry point of the React application
- Convert between different units of measurement:
- Length
- Temperature
- Weight
- Other units (as implemented in
unitConvert.ts
)
- Simple and intuitive user interface
- Real-time conversion as you type in the input field
- TypeScript support for type safety and improved code quality
- React
- TypeScript
- HTML
- CSS
- Clone this repository:
git clone https://github.com/Samuel581/Unit-Converter-React.git
- Navigate to the project directory:
cd Unit-Converter-React
- Install dependencies:
npm install
- Start the development server:
npm start
- Open your browser and visit
http://localhost:3000/
to view the application.
- Select the type of conversion you want to perform (length, temperature, weight, etc.).
- Choose the unit you want to convert from in the first dropdown.
- Enter the value you want to convert in the input field.
- Select the unit you want to convert to in the second dropdown.
- The converted value will be displayed after you click
convert
.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.