An open API service indexing awesome lists of open source software.

https://github.com/devxprite/simple-react-stopwatch

simple stopwatch application built using React
https://github.com/devxprite/simple-react-stopwatch

react sass stopwatch

Last synced: 3 months ago
JSON representation

simple stopwatch application built using React

Awesome Lists containing this project

README

        

# Simple React Stopwatch

## Demo: [https://simple-react-stopwatch.vercel.app/](https://simple-react-stopwatch.vercel.app/)

This is a simple stopwatch application built using React. It allows you to start, stop, and reset the timer, and displays the elapsed time in hours, minutes, seconds and milliseconds.

## Features

- Start the stopwatch to begin measuring time.
- Stop the stopwatch to pause the timer.
- Reset the stopwatch to zero and start again.

## Getting Started

To run this application locally, please follow these steps:

- Clone this repository to your local machine.
```bash
git clone https://github.com/devxpite/simple-react-stopwatch.git
```
- Navigate to the project directory.
```bash
cd simple-react-stopwatch
```
- Install the dependencies.
```bash
npm install
```
- Run the application.
```bash
npm run dev
```

5. Open your browser and visit http://localhost:5173 to see the application running.

## Usage

Once the application is running, you will see a stopwatch interface.

- Click the **Start** button to begin the stopwatch. The elapsed time will start increasing.
- Click the **Stop** button to pause the stopwatch. The elapsed time will stop increasing.
- Click the **Reset** button to reset the stopwatch to zero. The elapsed time will be set back to zero.