๐ Welcome to the Stopwatch project! ๐ This simple yet powerful stopwatch application is built using ReactJS โ๏ธ. The stopwatch comes with functionalities to Start
The Stopwatch โฒ๏ธ is a highly functional and visually appealing ReactJS component that keeps track of time elapsed. With its easy-to-use interface and accurate time tracking, this stopwatch is ideal for tasks that require precision timing โ, such as workouts ๐๏ธโโ๏ธ, studying ๐, or cooking ๐ณ.
- ReactJS โ๏ธ: To create a responsive and dynamic user interface.
- CSS ๐จ: To style the stopwatch and make it look sleek and modern.
- JavaScript ๐ป: For implementing the logic and functionalities of the stopwatch.
-
Clone the Repository ๐:
git clone https://github.com/nidhiupman568/StopWatch-Using-React.JS.git
-
Navigate to Project Directory ๐:
cd stopwatch
-
Install Dependencies ๐ฆ:
npm install
-
Run the Application ๐:
npm start
-
Open in Browser ๐:
Visithttp://localhost:3000
to view your stopwatch in action! ๐
src/Components/StopWatch/StopWatch.jsx
๐: The main stopwatch component.src/Components/Timer/Timer.jsx
โฒ๏ธ: The component displaying the time.src/Components/ControlButtons/ControlButtons.jsx
๐๏ธ: The component with control buttons like start, pause, resume, and reset.
- StopWatch ๐: The main component that manages state and controls the flow of time.
- Timer โฒ๏ธ: Responsible for displaying the elapsed time.
- ControlButtons ๐๏ธ: Includes buttons to start, pause, resume, and reset the stopwatch.
- time ๐ฐ๏ธ: Stores the time elapsed since the stopwatch was started.
- isActive โ : Indicates whether the stopwatch is currently active (running or paused).
- isPaused โธ๏ธ: Indicates whether the stopwatch is paused while active.
- Start
โถ๏ธ : Begins the stopwatch. - Pause โธ๏ธ: Pauses the running stopwatch.
- Resume ๐: Resumes the stopwatch from where it was paused.
- Reset ๐: Resets the stopwatch back to zero.
Follow these simple steps to set up the project on your local machine:
-
Create React Application โ๏ธ:
npx create-react-app stopwatch
-
Navigate to Project Directory ๐:
cd stopwatch
-
Create Component Structure ๐ ๏ธ: Inside the
src
folder, create aComponents
folder with subfolders namedStopWatch
,Timer
, andControlButtons
. Create.jsx
and.css
files for each component.
- Real-time โฐ time tracking
- Easy to use interface ๐จ
- Start, Pause, Resume, and Reset functionalities
- Built with modular React components โ๏ธ
To start the application, run the following command from the root directory of the project:
npm start
This will launch the application and open it in your default web browser. ๐
We welcome feedback and contributions! Feel free to fork ๐ด this repository and submit a pull request ๐ฅ. If you encounter any issues, please open a ticket in the issues section. ๐ฌ
Enjoy using the Stopwatch and happy coding! ๐โโ๏ธ
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