๐ Welcome ๐ to the Number Format Converter project! ๐ข This interactive web application ๐ฅ๏ธ allows users ๐ฅ to convert numbers ๐ข between various formats such as decimal, binary, octal, and hexadecimal. ๐ Built with ReactJS โ๏ธ, CSS ๐จ, and JSX โจ, this tool provides a comprehensive range of features to handle number conversions and calculations. ๐งฎ
The Number Format Converter ๐ข is a dynamic web application ๐ฅ๏ธ designed ๐ to assist users ๐ฅ in converting numbers ๐ข across different formats. ๐ With its user-friendly interface ๐ฅ๏ธ and powerful features ๐ง, users ๐ฅ can:
- Input a number ๐ข and get its representations in binary, octal, decimal, and hexadecimal formats. ๐
- Perform rounding ๐ข and display significant digits. โจ
- See the fractional part of the number ๐ข as a numerator and denominator. ๐งฎ
- Get the integer part of the number ๐ข in word format. ๐
- ReactJS โ๏ธ: JavaScript library ๐ for building user interfaces ๐ฅ๏ธ.
- CSS ๐จ: For styling ๐จ and making the application visually appealing โจ.
- JSX โจ: Syntax extension for JavaScript ๐ป, allowing you to write HTML elements ๐ and components ๐ง in ReactJS.
-
Clone ๐ the repository:
git clone 'https://github.com/nidhiupman568/NumberFormat-Converter-Using-React.JS.git' ๐
-
Navigate ๐ถโโ๏ธ to the project directory:
cd number-format-converter ๐
-
Install ๐ฅ the required modules:
npm install number-to-words ๐ฅ
-
Open ๐
App.js
to see the main component ๐งฉ andNumberformat.js
for conversion logic ๐งฎ. -
Open ๐
Numberformat.css
to view the styling ๐จ. -
Start ๐ the application by running:
npm start ๐
-
Open ๐ your web browser ๐ and navigate to:
http://localhost:3000/ ๐
Hereโs a sneak peek ๐ผ๏ธ of the Number Format Converter ๐ข in action โณ:
-
Set Up ๐ ๏ธ a new React project ๐ฅ๏ธ using the command:
npx create-react-app <<name_of_project>> ๐
-
Navigate ๐ถโโ๏ธ to the project folder ๐:
cd <<name_of_project>> ๐
-
Create ๐ a folder called
components
๐ฆ and add ๐ the following files ๐:Numberformat.js
๐ข: Contains the logic for number format conversion ๐งฎ, rounding โจ, significant digits ๐ข, and word representation ๐.Numberformat.css
๐จ: Contains the styling ๐จ for the Number Format Converter elements ๐ฅ๏ธ.
-
Install ๐ฅ the
number-to-words
module ๐ ๏ธ to convert integers into words:npm install number-to-words ๐ฅ
App.js
๐ฅ๏ธ: Imports theNumberformat
component ๐งฉ and exports it ๐.Numberformat.js
๐ข: Handles conversion logic ๐งฎ, rounding โจ, significant digits ๐ข, and word representation ๐.Numberformat.css
๐จ: Styles the Number Format Converter ๐ข.
๐ Enjoy using the Number Format Converter! ๐ Feel free to share ๐ฃ๏ธ your feedback ๐ or contribute ๐ค to the project by making a pull request ๐. Happy converting! ๐ข๐ซ
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify