Skip to content

๐ŸŽ‰ Welcome to the Stopwatch project! ๐ŸŽ‰ This simple yet powerful stopwatch application is built using ReactJS โš›๏ธ. The stopwatch comes with functionalities to Start โ–ถ๏ธ, Pause โธ๏ธ, Resume ๐Ÿ”„, and Reset ๐Ÿ”, making it a perfect tool for all your timing needs. โŒš

Notifications You must be signed in to change notification settings

nidhiupman568/StopWatch-Using-React.JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โฑ๏ธ ReactJS Stopwatch Project โฑ๏ธ

๐ŸŽ‰ Welcome to the Stopwatch project! ๐ŸŽ‰ This simple yet powerful stopwatch application is built using ReactJS โš›๏ธ. The stopwatch comes with functionalities to Start โ–ถ๏ธ, Pause โธ๏ธ, Resume ๐Ÿ”„, and Reset ๐Ÿ”, making it a perfect tool for all your timing needs. โŒš

๐Ÿ“‹ Description ๐Ÿ“

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 ๐Ÿณ.

๐Ÿ› ๏ธ Built With ๐Ÿ› ๏ธ

  • 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.

๐Ÿš€ How to Use ๐Ÿš€

  1. Clone the Repository ๐Ÿ“‚:

    git clone https://github.com/nidhiupman568/StopWatch-Using-React.JS.git
  2. Navigate to Project Directory ๐Ÿ“:

    cd stopwatch
  3. Install Dependencies ๐Ÿ“ฆ:

    npm install
  4. Run the Application ๐Ÿƒ:

    npm start
  5. Open in Browser ๐ŸŒ:
    Visit http://localhost:3000 to view your stopwatch in action! ๐Ÿ•’

๐Ÿ“ Project Structure ๐Ÿ“‚

  • 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.

๐Ÿ“ฆ Components Overview ๐Ÿงฉ

  1. StopWatch ๐Ÿ•’: The main component that manages state and controls the flow of time.
  2. Timer โฒ๏ธ: Responsible for displaying the elapsed time.
  3. ControlButtons ๐ŸŽ›๏ธ: Includes buttons to start, pause, resume, and reset the stopwatch.

๐Ÿ—๏ธ States Used in StopWatch Component ๐Ÿ—๏ธ

  1. time ๐Ÿ•ฐ๏ธ: Stores the time elapsed since the stopwatch was started.
  2. isActive โœ…: Indicates whether the stopwatch is currently active (running or paused).
  3. isPaused โธ๏ธ: Indicates whether the stopwatch is paused while active.

๐ŸŽฎ Control Buttons Functionality ๐ŸŽฎ

  • 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.

๐Ÿ’ป Installation and Setup โš™๏ธ

Follow these simple steps to set up the project on your local machine:

  1. Create React Application โš›๏ธ:

    npx create-react-app stopwatch
  2. Navigate to Project Directory ๐Ÿ“‚:

    cd stopwatch
  3. Create Component Structure ๐Ÿ› ๏ธ: Inside the src folder, create a Components folder with subfolders named StopWatch, Timer, and ControlButtons. Create .jsx and .css files for each component.

๐ŸŒŸ Features ๐ŸŒŸ

  • Real-time โฐ time tracking
  • Easy to use interface ๐ŸŽจ
  • Start, Pause, Resume, and Reset functionalities
  • Built with modular React components โš›๏ธ

๐Ÿ“ธ Screenshot ๐Ÿ“ธ

stopwatch

๐Ÿ› ๏ธ Running the Application ๐Ÿƒโ€โ™‚๏ธ

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. ๐ŸŽ‰

๐Ÿ“ Feedback & Contribution ๐Ÿค

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! ๐ŸŽ‰โŒ›โš›๏ธ

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

npm run eject

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.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

๐ŸŽ‰ Welcome to the Stopwatch project! ๐ŸŽ‰ This simple yet powerful stopwatch application is built using ReactJS โš›๏ธ. The stopwatch comes with functionalities to Start โ–ถ๏ธ, Pause โธ๏ธ, Resume ๐Ÿ”„, and Reset ๐Ÿ”, making it a perfect tool for all your timing needs. โŒš

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published