Site : https://royalsrivastava-stopwatch.vercel.app
This is a simple stopwatch application built using React. It allows you to start, stop, and reset a stopwatch, displaying elapsed time in hours, minutes, seconds, and milliseconds.
Vite.+.React.-.Opera.2024-07-31.00-47-13.mp4
- Start/Stop: Begin or pause the stopwatch.
- Reset: Reset the stopwatch to zero.
- Formatted Time: Displays time in
HH:MM:SS:MMM
format.
To set up and run this project, follow these steps:
-
Clone the Repository:
git clone <repository-url>
-
Navigate to the Project Directory:
cd <project-directory>
-
Install Dependencies:
Install the required dependencies using npm:
npm install
-
Run the Development Server:
Start the development server with:
npm run dev
-
Open the Application:
Open your browser and navigate to
http://localhost:[port_number]
to view the stopwatch application.
-
Scripts:
npm i
: Installs Dependencies.npm run dev
: Starts the development server.npm run build
: Builds the project for production.npm run start
: Starts the production server.
-
Dependencies:
- Vite
- React
- Tailwind